File

core/bottom-drawer/bottom-drawer.service.ts

Description

Service for opening components in a bottom drawer.

Example :
```typescript
const drawer = this.drawerService.openDrawer(MyComponent, {
  initialState: { data: 'some data' },
  disableClickOutside: true
});
Example :

Index

Methods

Constructor

constructor(applicationRef: ApplicationRef, router: Router)
Parameters :
Name Type Optional
applicationRef ApplicationRef No
router Router No

Methods

openDrawer
openDrawer(component: Type, options?: DrawerOptions)
Type parameters :
  • C

Opens a component in a bottom drawer.

Parameters :
Name Type Optional Description
component Type<C> No
  • The component type to render
options DrawerOptions<C> Yes
  • Configuration options (initialState, disableClickOutside, closeOnNavigation, host)
Returns : BottomDrawerRef<C>

A reference to the bottom drawer instance

results matching ""

    No results matching ""