Methods
delayedAttrRemove()
A simple remove hook generator so we remove an element after it's finished its closing animation.
The attr value is immediately set and after waitMs it's removed from dom.
- Source:
Example
hook={remove: $hooks.delayedAttrRemove(`open`, `false`)}
Type Definitions
AttrSchema
Attributes schema that defines the component's html attributes and their types
Panel auto parses attribute changes into attrs() object and $attr template helper
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
type |
'string' | 'number' | 'boolean' | 'json' | type of the attribute if not set, the attr parser will interpret it as 'string' |
default |
string | value if the attr is not defined |
description |
number | description of the attribute, what it does e.t.c |
- Source: