import Component from '@glimmer/component';
import { type NoDataSignature } from '../../../../interfaces/components/models-table/themes/default/no-data-signature.interface';
/**
* Table row shown when no data provided to the ModelsTable. Component used within {@link DefaultTheme.TableBody | TableBody}.
*
* This component is a table-row with a single cell. This cell has a `colspan` equal to the shown columns count.
*
* Usage example:
*
* ```html
*
*
*
* {{#if Body.visibleContent.length}}
* {{! ... }}
* {{else}}
*
* {{/if}}
*
* {{! ... }}
*
* {{! .... }}
*
* ```
*
* Usage with a block context:
*
* ```html
*
*
*
* {{#if Body.visibleContent.length}}
* {{! ... }}
* {{else}}
*
* Any message here
*
* {{/if}}
*
* {{! ... }}
*
* {{! .... }}
*
* ```
*/
export default class NoData extends Component {
protected get realColumnsCount(): number {
return (
this.args.columnsCount +
(this.args.displayGroupedValueAs === 'column' ? 1 : 0)
);
}
}