Lines Matching refs:sortable

36 enable UI triggered sorting, set the DataTable's `sortable` attribute to
43 sortable: true
49 Setting `sortable` to `true` will enable UI sorting for all columns. To enable
50 UI sorting for certain columns only, set `sortable` to an array of column keys,
51 or just add `sortable: true` to the respective column configuration objects.
52 This uses the default setting of `sortable: auto` for the DataTable instance.
58 { key: 'username', sortable: true },
59 { key: 'name', sortable: true },
60 { key: 'birthdate', sortable: true }
63 // sortable: 'auto' is the default
70 sortable: [ 'username', 'name', 'birthdate' ]
74 To disable UI sorting for all columns, set `sortable` to `false`. This still
84 relate to a single `key`, require a `sortFn` to be sortable.
98 sortable: [ 'username', 'name', 'birthdate' ]
112 // pass an empty array if no UI columns should show sortable, but you want the
119 * "auto" - (default) looks for `sortable: true` in the column configurations
121 * `false - no UI sortable is enabled
122 * {String[]} - array of key names to give sortable headers
124 @attribute sortable
129 sortable: {
221 Template for the node that will wrap the header content for sortable
369 '.' + this.getClassName('sortable', 'column'));
499 // compiling a new function for each column/sortable change or
550 Fires the `sort` event in response to user clicks on sortable column
600 Normalizes the possible input values for the `sortable` attribute, storing
608 var sortable = this.get('sortable'),
612 if (isArray(sortable)) {
613 for (i = 0, len = sortable.length; i < len; ++i) {
614 col = sortable[i];
626 } else if (sortable) {
629 if (sortable === 'auto') {
631 if (!columns[i].sortable) {
642 Initial application of the sortable UI.
764 Also currently wraps the header content of sortable columns in a `<div>`
773 sortableClass = this.getClassName('sortable', 'column'),
782 this.getClassName('sortable'),
866 @param {Any} val The input value to `set("sortable", VAL)`