Type of object that the data source provides
Returns the child item at the specified index in the parent. If the
parent is undefined, returns a root-level item.
To maintain expanded status across refreshes, this should return an
equivalent object (through __eq if necessary) to previous calls with
the same parameters. If a new object is returned each time, expanded
status will not be preserved across refreshes, so calling update on the
view will collapse all items.
The view being called on
The 0-based index of the item
Optionalparent: ItemThe parent to query, or undefined for root items
An opaque object containing info for the data source to use later
OptionalcolumnReturns whether the specified column is valid for sorting. The
application must implement sorting columns on its own, using sortColumn
on the table view.
The table requesting data
The 0-based column to query
Whether the column can be used for sort order in the table
Returns the number of children for an item. Negative numbers will hide the disclosure indicator, while 0 will keep it but show no children.
The view being called on
Optionalitem: ItemThe item to query (from childOfItem), or undefined for the number of root items
The number of items under the parent
Returns the number of columns being displayed in the view.
The view being called on
The number of columns to display
OptionaltitleReturns the title for the specified column. If unimplemented, the table will not have a header row.
The table requesting data
The 0-based column to query
The text showed in the header for the column
Returns a view for a column from an item.
The view being called on
The item to use, from childOfItem
The 0-based column index to query
The view to display for this cell
OptionalwidthReturns the width of a column, overriding the width of the view. If not implemented, the width is determined from the content.
The table requesting data
The 0-based column to query
The width of the column
An outline view data source provides the content for an outline view.