@umbraco-ui/uui-table
Version:
A basic loader element
57 lines (56 loc) • 1.81 kB
TypeScript
import '.';
import '@umbraco-ui/uui-avatar/lib';
import '@umbraco-ui/uui-box/lib';
import '@umbraco-ui/uui-button/lib';
import '@umbraco-ui/uui-checkbox/lib';
import '@umbraco-ui/uui-icon/lib';
import '@umbraco-ui/uui-progress-bar/lib';
import '@umbraco-ui/uui-tag/lib';
import '@umbraco-ui/uui-symbol-sort/lib';
import { LitElement } from 'lit';
interface TableColumn {
name: string;
sort: (items: Array<TableItem>, desc: boolean) => Array<TableItem>;
}
interface TableItem {
key: string;
name: string;
progress: number;
signUpDate: string;
email: string;
newsletter: boolean;
}
export declare class UUITableWithSelectionExampleElement extends LitElement {
/**
* This property is used to generate the label for the select all checkbox
* @type {string}
* @attr
*/
selectAllLabel: string;
/**
* This property is used to generate the label for individual row checkboxes.
* The item name will be appended. For example, with the default value "Select" and an item named "John Doe",
* the resulting label will be "Select John Doe".
* @type {string}
* @attr
*/
selectRowLabel: string;
private _columns;
private _items;
private _selectionMode;
private _selection;
private _sortingColumn;
private _sortingDesc;
private _selectAllHandler;
private _selectHandler;
private _selectRowHandler;
private _deselectRowHandler;
private _sortingHandler;
private _isSelected;
connectedCallback(): void;
renderHeaderCellTemplate(column: TableColumn): import("lit").TemplateResult<1>;
protected renderRowTemplate: (item: TableItem) => import("lit").TemplateResult<1>;
render(): import("lit").TemplateResult<1>;
static styles: import("lit").CSSResult[];
}
export {};