From 111325b199f8cc1741958fd645522858bdca55f4 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Tue, 3 Nov 2020 14:48:08 -0800 Subject: Add documentation for table component Adds Table documentation page under Components section with an example of how to create a basic table. Signed-off-by: Yoshie Muranaka Change-Id: I9033fae662bd46d301edfb02d8a5c108e05017c6 --- docs/guide/components/table.md | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 docs/guide/components/table.md (limited to 'docs/guide') diff --git a/docs/guide/components/table.md b/docs/guide/components/table.md new file mode 100644 index 00000000..4ed496ef --- /dev/null +++ b/docs/guide/components/table.md @@ -0,0 +1,93 @@ +# Table + +All tables in the application are using the [BoostrapVue table component](https://bootstrap-vue.org/docs/components/table). + +To use the component, include the `` tag in the template. The component is registered globally so does not need to be imported in each SFC. + +## Basic table +There are a few required properties to maintain consistency across the application. The full list of options can be viewed on the [Bootstrap-vue table component's documentation page](https://bootstrap-vue.org/docs/components/table#comp-ref-b-table-props). + + +### Required properties + +- `items` - renders table items +- `fields` - renders table header +- `hover` - enables table row hover state +- `responsive` or `stacked` - makes the table responsive (enables horizontal scrolling or stacked view) at the defined breakpoint +- `show-empty` *(required if table data is generated dynamically)* - shows an empty message if there are no items in the table +- `empty-text` *(required if table data is generated dynamically)* - the translated empty message + +
+ + + + + +
+ +```vue + + + +``` + + + + + -- cgit v1.2.3