diff --git a/examples/docs/en-US/table.md b/examples/docs/en-US/table.md index d6ecb6d56..a1ccff486 100644 --- a/examples/docs/en-US/table.md +++ b/examples/docs/en-US/table.md @@ -216,9 +216,11 @@ return sums; }, + setCurrent(row) { this.$refs.singleTable.setCurrentRow(row); }, + toggleSelection(rows) { if (rows) { rows.forEach(row => { @@ -240,6 +242,7 @@ handleDelete(index, row) { console.log(index, row); }, + handleSelectionChange(val) { this.multipleSelection = val; }, @@ -256,6 +259,11 @@ return row.tag === value; }, + filterHandler(value, row, column) { + const property = column['property']; + return row[property] === value; + }, + tableRowClassName({row, rowIndex}) { if (rowIndex === 1) { return 'warning-row'; @@ -1326,7 +1334,7 @@ Sort the data to find or compare data quickly. Filter the table to find desired data. -:::demo Set attribute `filters` and `filter-method` in `el-table-column` makes this column filterable. `filters` is an array, and `filter-method` is a function deciding which rows are displayed. It has two parameters: `value` and `row`. +:::demo Set attribute `filters` and `filter-method` in `el-table-column` makes this column filterable. `filters` is an array, and `filter-method` is a function deciding which rows are displayed. It has three parameters: `value`, `row` and `column`. ```html