-
Notifications
You must be signed in to change notification settings - Fork 134
/
columns-hidden.ts
29 lines (28 loc) · 913 Bytes
/
columns-hidden.ts
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
import Component from '@glimmer/component';
import { type ColumnsHiddenSignature } from '../../../../interfaces/components/models-table/themes/default/columns-hidden-signature.interface';
/**
* Table row used within {@link DefaultTheme.TableBody}.
*
* Component used when all columns are hidden and no data items are shown. Usually it contains a simple message.
*
* Usage example:
*
* ```html
* <ModelsTable @data={{this.data}} @columns={{this.columns}} as |MT|>
* <MT.Table as |Table|>
* <Table.Body as |Body|>
* {{#if Body.allColumnsAreHidden}}
* <Body.ColumnsHidden as |CH|>
* Any message here
* </Body.ColumnsHidden>
* {{else}}
* {{! ... }}
* {{/if}}
* </Table.Body>
* {{! ... }}
* </MT.Table>
* {{! .... }}
* </ModelsTable>
* ```
*/
export default class ColumnsHidden extends Component<ColumnsHiddenSignature> {}