Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 3x 3x 3x 5x | import Component from '@ember/component'; import layout from '../../../templates/components/bootstrap/tables/-body'; import { computed } from '@ember/object'; import { and, not, or } from '@ember/object/computed'; import { isArray } from '@ember/array'; export default Component.extend({ layout, tagName: 'tbody', computedColumnCount: computed('actionsEnabled', function() { Iif(this.get('actionsEnabled')) { return 1; } else { return 0; } }), totalColumnCount: computed('definedColumnCount', 'computedColumnCount', function() { return this.get('definedColumnCount') + this.get('computedColumnCount'); }), arrayExists: computed('rowsData', function(){ return isArray(this.get('rowsData')); }), loadedRowsData: or('rowsData.isLoaded', 'rowsData.isFulfilled', 'arrayExists'), reloadedRowsData: not('reloadingRowsData'), rowsDataLoaded: and('loadedRowsData', 'reloadedRowsData'), }); |