0.4.0 • Published 3 years ago
@emanon/ema-drawer v0.4.0
ema-drawer
Properties
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
opened | opened | boolean | false | Whether showing or not. |
persistent | persistent | boolean | false | Clicking outside of the element will not deactivate it. |
placement | placement | "top" \| "right" \| "bottom" \| "left" | "left" | Position where to show on the window. |
Methods
Method | Type |
---|---|
close | (): void |
Events
Event | Type | Description |
---|---|---|
close | CustomEvent<{}> | Fires when the drawer has closed. |
opened | CustomEvent<{}> | Fires when Drawer has opened. |
request-close | CustomEvent<{ accept: () => void; }> | Fires when the drawer want to be closed.Call the function passed to accept. |
CSS Custom Properties
Property | Default | Description |
---|---|---|
--ema-c-drawer-containerBGColor | "#fff" | Container background color. |
--ema-c-drawer-containerMaxSize | "auto" | Container max size. |
--ema-c-drawer-containerRadius | 0 | Container Radius. |
--ema-c-drawer-containerSize | "30%" | Container size. |
--ema-c-drawer-diff | "100px" | Transform length. |
--ema-c-drawer-duration | "300ms" | Length of transition time. |
--ema-c-drawer-overlayColor | "#80888f" | Overlay color. |
--ema-c-drawer-overlayOpacity | 0.5 | Ovaerlay opacity. |
0.4.0
3 years ago
0.3.1
3 years ago
0.3.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago
0.0.19
4 years ago
0.0.18
4 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago