Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. import {hoistCmp, uses} from '@xh/hoist/core';
  2. import {grid, gridCountLabel} from '@xh/hoist/cmp/grid';
  3. import {filler} from '@xh/hoist/cmp/layout';
  4. import {relativeTimestamp} from '@xh/hoist/cmp/relativetimestamp';
  5. import {refreshButton} from '@xh/hoist/desktop/cmp/button';
  6. import {dimensionChooser} from '@xh/hoist/desktop/cmp/dimensionchooser';
  7. import {panel} from '@xh/hoist/desktop/cmp/panel';
  8. import {Icon} from '@xh/hoist/icon';
  9.  
  10. import {GridPanelModel} from '../../GridPanelModel';
  11.  
  12. export const gridPanel = hoistCmp.factory({
  13. model: uses(GridPanelModel),
  14.  
  15. render() {
  16. return panel({
  17. title: 'Positions',
  18. icon: Icon.portfolio(),
  19. item: grid(),
  20. bbar: [
  21. dimensionChooser(),
  22. gridCountLabel({unit: 'position'}),
  23. filler(),
  24. relativeTimestamp({bind: 'loadTimestamp'}),
  25. refreshButton({intent: 'success'})
  26. ]
  27. });
  28. }
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement