Lines Matching defs:sortable

34 enable UI triggered sorting, set the DataTable's `sortable` attribute to
41 sortable: true
47 Setting `sortable` to `true` will enable UI sorting for all columns. To enable
48 UI sorting for certain columns only, set `sortable` to an array of column keys,
49 or just add `sortable: true` to the respective column configuration objects.
50 This uses the default setting of `sortable: auto` for the DataTable instance.
56 { key: 'username', sortable: true },
57 { key: 'name', sortable: true },
58 { key: 'birthdate', sortable: true }
61 // sortable: 'auto' is the default
68 sortable: [ 'username', 'name', 'birthdate' ]
72 To disable UI sorting for all columns, set `sortable` to `false`. This still
82 relate to a single `key`, require a `sortFn` to be sortable.
96 sortable: [ 'username', 'name', 'birthdate' ]
110 // pass an empty array if no UI columns should show sortable, but you want the
117 * "auto" - (default) looks for `sortable: true` in the column configurations
119 * `false - no UI sortable is enabled
120 * {String[]} - array of key names to give sortable headers
122 @attribute sortable
127 sortable: {
219 Template for the node that will wrap the header content for sortable
367 '.' + this.getClassName('sortable', 'column'));
497 // compiling a new function for each column/sortable change or
548 Fires the `sort` event in response to user clicks on sortable column
598 Normalizes the possible input values for the `sortable` attribute, storing
606 var sortable = this.get('sortable'),
610 if (isArray(sortable)) {
611 for (i = 0, len = sortable.length; i < len; ++i) {
612 col = sortable[i];
624 } else if (sortable) {
627 if (sortable === 'auto') {
629 if (!columns[i].sortable) {
640 Initial application of the sortable UI.
762 Also currently wraps the header content of sortable columns in a `<div>`
771 sortableClass = this.getClassName('sortable', 'column'),
780 this.getClassName('sortable'),
864 @param {Any} val The input value to `set("sortable", VAL)`