0.4.0 • Published 4 years ago

@emanon/ema-drawer v0.4.0

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

ema-drawer

Properties

PropertyAttributeTypeDefaultDescription
openedopenedbooleanfalseWhether showing or not.
persistentpersistentbooleanfalseClicking outside of the element will not deactivate it.
placementplacement"top" \| "right" \| "bottom" \| "left""left"Position where to show on the window.

Methods

MethodType
close(): void

Events

EventTypeDescription
closeCustomEvent<{}>Fires when the drawer has closed.
openedCustomEvent<{}>Fires when Drawer has opened.
request-closeCustomEvent<{ accept: () => void; }>Fires when the drawer want to be closed.Call the function passed to accept.

CSS Custom Properties

PropertyDefaultDescription
--ema-c-drawer-containerBGColor"#fff"Container background color.
--ema-c-drawer-containerMaxSize"auto"Container max size.
--ema-c-drawer-containerRadius0Container 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-overlayOpacity0.5Ovaerlay opacity.
0.4.0

4 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago