From add58b4084ee719d376d5f7a21105a3ef0944475 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Sun, 12 Jun 2022 12:58:47 +0200 Subject: [PATCH] adding --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40766e4..df0675e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm install @tiny-components\sidebar-form --save ## How to use -There are Multiple Components to use this Form. +Create your own Component that will include a form. The Tiny Sidebar Form uses Slot. ```js { handleClose() }} loading={ state.isLoading }> @@ -34,3 +34,25 @@ There are Multiple Components to use this Form. ``` + +You have to add the Mixin "sidebarFormMixin.js". + +```js +export default () => { + return { + + ...sidebar, // adding basic funtion for sidebar +``` + +Add Function to handle the submit. + +```js +handleSubmit(event) { + event.preventDefault() + + this.state.isLoading = true + this.update() + ... +``` + +You can find a full Example in src/ and a running version under example/.