CngxDrawerContent
projects/common/layout/drawer/drawer-content.directive.ts
Import#
import { CngxDrawerContent } from '@cngx/common/layout'
Description#
Marks the main content area adjacent to a drawer panel.
Adds a CSS class when the drawer is open so the consumer can offset the content via CSS transitions or transforms.
<main [cngxDrawerContent]="drawer">
Page content
</main>Metadata#
Host#
Index#
Inputs
Derived State
Inputs#
CngxDrawerReference to the parent CngxDrawer state owner.
{ alias: 'cngxDrawerContent' }HostBindings#
| Binding | Expression |
|---|---|
[class.cngx-drawer-content] | true |
[class.cngx-drawer-content--shifted] | isOpen() |