0.4.0 • Published 3 years ago

@emanon/ema-drawer v0.4.0

Weekly downloads
9
License
MIT
Repository
github
Last release
3 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

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