Lines Matching full:row
10 * The 'data' attribute should be an array of all row objects in the table.
12 * Each row object in the data array should also have a 'uiData'
15 * Each row object in the data array can optionally have an
18 * Each row object can optionally have an 'expandContent' property
21 * Each row object can optionally have a 'selectable' property. Defaults
22 * to true if table is selectable. If a particular row should not
34 * row object. If a particular column is not sortable, set to false.
46 * The 'row-actions-enabled' attribute, should be a boolean value
47 * Can be set to true to render table row actions. Defaults to false.
48 * Row actions are defined in data.actions.
51 * row object in data array should contain a 'expandContent' property
113 this.data.forEach((row) => {
114 if (row.uiData === undefined) {
117 row.uiData = [];
120 // If table is selectable check row for 'selectable' property
121 row.selectable = row.selectable === undefined ? true : row.selectable;
122 if (row.selectable) {
124 row.selected = false;
140 * Sets each selectable row selected property to true
146 this.data.forEach((row, index) => {
147 if (!row.selected && row.selectable) {
148 row.selected = true;
156 * Sets each row selected property to false
163 this.data.forEach((row) => {
164 if (row.selectable) {
165 row.selected = false;
171 * Callback when table row action clicked
172 * Emits user desired action and associated row data to
175 * @param {any} row : user object
177 this.onEmitRowAction = (action, row) => {
178 if (action !== undefined && row !== undefined) {
179 const value = {action, row};
186 * Emits the action type and the selected row data to
191 const filteredRows = this.data.filter((row) => row.selected);
215 * @param {number} row : index of expanded row
217 this.onClickExpand = (row) => {
218 if (this.expandedRows.has(row)) {
219 this.expandedRows.delete(row)
221 this.expandedRows.add(row);
227 * @param {number} row : index of selected row
229 this.onRowSelectChange = (row) => {
230 if (this.selectedRows.has(row)) {
231 this.selectedRows.delete(row);
233 this.selectedRows.add(row);