You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
636 B
28 lines
636 B
2 years ago
|
<example-button>
|
||
|
<button class="button" onclick={ (event) => { handleClick(event) } }>
|
||
|
Open
|
||
|
</button>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
// store for sidebar
|
||
|
import sidebarStore from './exampleStore.js'
|
||
|
|
||
|
/**
|
||
|
* example to open sidebar form
|
||
|
*
|
||
|
* @author Björn Hase
|
||
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||
|
* @link https://gitea.node001.net/tiny-components/sidebar-form
|
||
|
*
|
||
|
*/
|
||
|
export default {
|
||
|
|
||
|
handleClick() {
|
||
|
sidebarStore.trigger('open')
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</example-button>
|