DataTable

Provides a Widget that is responsible for rendering columnar data into a highly customizable and fully accessible HTML table. The core functionality of DataTable is to visualize structured data as a table. A variety of Plugins can then be used to add features to the table such as sorting and scrolling.

As of 3.5.0, the architecture and APIs have changed to the following architecture:

Class composition

Events

Is a bubble target for it's ModelList and all configured View instances, so inherits all their events. Events fired directly from DataTable:

Properties

Render lifecycle

This is the base rendering; augmented rendering for column widths left out.

  1. renderUI fires renderTable
  2. renderTable's defaultFn creates the <table>
  3. if headerView is set
    1. creates a <thead>
    2. creates an instance of the headerClass, passing the _headerConfig object plus the <thead> as a "container", and data as the "modelList"
    3. fires the renderHead event, passing the View instance as payload
    4. renderHead's defaultFn calls the View's render() method
  4. repeat for footerView, then bodyView
  5. bindUI does the usual thing
  6. syncUI creates the <caption> if the attribute is set, and so for the <table>'s summary attribute

See the user guide (http://yuilibrary.com/datatable/) for more information.