Lion Logo Lion Fundamentals Guides Components Blog Toggle darkmode

Drawer: API Table

class: LionDrawer, lion-drawer

Fields

NamePrivacyTypeDefaultDescriptionInherited From
positionpublicstringSetter for position property, available values are 'top', 'left' and 'right'
_contentWidthprotected
_contentHeightprotectedLionCollapsible
transitioningpublicboolean
openedpublicbooleanfalseLionCollapsible
_invokerNodeprotectedLionCollapsible
_contentNodeprotectedLionCollapsible

Methods

NamePrivacyDescriptionParametersReturnInherited From
__setBoundariesprotected
_showAnimationprotectedTrigger show animation and wait for transition to be finished.{ contentNode }, options: @param {HTMLElement} options.contentNode * LionCollapsible
_hideAnimationprotectedTrigger hide animation and wait for transition to be finished.{ contentNode }, options: @param {HTMLElement} options.contentNode * LionCollapsible
_waitForTransitionprotectedWait until the transition event is finished.{ contentNode }, options: @param {HTMLElement} options.contentNode * Promise<void>
_openedChangedprotected
_updateContentSizeprotected
showpublicShow extra content.LionCollapsible
hidepublicHide extra content.LionCollapsible
togglepublicToggle the current(opened/closed) state.LionCollapsible

Events

NameTypeDescriptionInherited From
opened-changedCustomEventLionCollapsible

Attributes

NameFieldInherited From
transitioningtransitioning
openedopenedLionCollapsible
positionposition