From ce7e42d27356f8d783d1a31eac922b271b35be40 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Fri, 13 Nov 2020 10:47:47 -0800 Subject: Add documentation for table row actions Signed-off-by: Yoshie Muranaka Change-Id: I52f71d9f3098e28d09c21c9293fe051878a41673 --- docs/guide/components/table/index.md | 81 +++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) (limited to 'docs/guide/components/table/index.md') diff --git a/docs/guide/components/table/index.md b/docs/guide/components/table/index.md index aca509c2..8398ace6 100644 --- a/docs/guide/components/table/index.md +++ b/docs/guide/components/table/index.md @@ -259,7 +259,86 @@ export default { ``` +## Row actions + +To add table row actions, add a column for the action buttons in the table. Then in the array of table items, add a corresponding array of actions for each item. The array should have each desired row action with a `value` and `title` property. + +Import the `` component. Provide the `value` and `title` props to the component and use the named `#icons` slot to include an icon. The component will emit a `@click-table-action` with the event value. + +![Table row actions example](./table-row-actions.png) + +```vue + + +``` + - -- cgit v1.2.3