File

core/bottom-drawer/bottom-drawer.component.ts

Description

Bottom drawer component that slides up from the bottom of the viewport. Typically managed by BottomDrawerService.

Metadata

Index

Properties
Methods
HostListeners
Accessors

HostListeners

document:keydown.escape
Arguments : '$event'
document:keydown.escape(event: KeyboardEvent)

Handles Escape key press to close the drawer.

Methods

hide
hide()

Hides the drawer with animation.

Returns : void
onEscapeKey
onEscapeKey(event: KeyboardEvent)
Decorators :
@HostListener('document:keydown.escape', ['$event'])

Handles Escape key press to close the drawer.

Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void

Properties

disableClickOutside
Type : unknown
Default value : false

When enabled, clicking outside the drawer will not close it.

drawerHost
Type : ViewContainerRef
Decorators :
@ViewChild('drawerHost', {read: ViewContainerRef})

Accessors

drawerOpen$
getdrawerOpen$()
<div [ngClass]="{ drawerOpen: drawerOpen$ | async }">
  <div
    class="bottom-drawer"
    [cdkTrapFocus]="drawerOpen$ | async"
    role="dialog" 
    aria-modal="true" 
    aria-labelledby="drawerTitle"
    [ngClass]="{ 'has-backdrop': disableClickOutside }"
  >
    <div class="d-flex d-col no-align-items fit-h">
      <ng-template #drawerHost></ng-template>
    </div>
  </div>
</div>

results matching ""

    No results matching ""