Tabular data is one of the most frequent forms of information we usually deal with. In the previous chapter we've seen how such information can be retrieved from various sources via the DataSource Utility. In this chapter we will see how to present that information to our visitors in a highly interactive way. A YUI DataTable can be sorted, paginated, its cells edited, its columns resized, reordered, hidden or shown, its records selected, and various actions can be associated with user interaction with the table.
In this chapter we will see how to:
Define a DataTable
Use and add cell formatters
Respond to user interaction
Enable cell editing
Enable sorting and paging on the client side and through the server
DataTable is the largest component measured in the size of its source file and also that of its documentation, which provides a good representation of the options it offers. To this, it is fair to add the size and features provided by the DataSource that is a required dependency...