Lion Logo Lion Fundamentals Guides Components Blog Toggle darkmode

Drawer: API Table

class: LionDrawer, lion-drawer

Fields

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

Methods

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

Events

NameTypeDescriptionInherited From
opened-changedCustomEventLionCollapsible

Attributes

NameFieldInherited From
transitioningtransitioning
openedopenedLionCollapsible
positionposition