From 0f22907a4163d6cb84c1cb7c024b09db888e88b2 Mon Sep 17 00:00:00 2001 From: Sukanya Pandey Date: Fri, 27 Nov 2020 13:59:30 +0530 Subject: Add form file documentation Signed-off-by: Sukanya Pandey Change-Id: I578ead17e5870ae0981aba775c258b49d697a208 --- docs/guide/components/file-upload/formfile.png | Bin 0 -> 7496 bytes docs/guide/components/file-upload/readme.md | 28 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 docs/guide/components/file-upload/formfile.png create mode 100644 docs/guide/components/file-upload/readme.md (limited to 'docs/guide/components/file-upload') diff --git a/docs/guide/components/file-upload/formfile.png b/docs/guide/components/file-upload/formfile.png new file mode 100644 index 00000000..14bcf217 Binary files /dev/null and b/docs/guide/components/file-upload/formfile.png differ diff --git a/docs/guide/components/file-upload/readme.md b/docs/guide/components/file-upload/readme.md new file mode 100644 index 00000000..49945308 --- /dev/null +++ b/docs/guide/components/file-upload/readme.md @@ -0,0 +1,28 @@ +# FormFile + +`FormFile` is a custom component wrapper around the Bootstrap-vue Form File component. The purpose of this component is to upload files to the BMC. + +To use this component: +1. Import it into the single file component (SFC) +2. Add the `` tag +3. Add the optional `id` , `disabled`, `accept` and `state` prop as required + +[Learn more about the Bootstrap-vue Form File component](https://bootstrap-vue.org/docs/components/form-file) +### Optional properties + +- `id`- Used to set the `id` attribute on the rendered content, and used as the base to generate any additional element IDs as needed +- `disabled` - When set to `true`, disables the component's functionality and places it in a disabled state +- `accept` - Set value to specify which file types to allow +- `state` - Controls the validation state appearance of the component. `true` for valid, `false` for invalid, or `null` for no validation state + +## Example of form file + +```vue + + +``` + +![Formfile example in firmware](./formfile.png) -- cgit v1.2.3