tree: 03b54e1cbf620749e23dc2f893d33a47fb58bea1 [path history] [tgz]
  1. covalent-core-sidesheet.d.ts
  2. covalent-core-sidesheet.metadata.json
  3. index.d.ts
  4. package.json
  5. public-api.d.ts
  6. README.md
  7. sidesheet.component.d.ts
  8. sidesheet.component.scss
  9. sidesheet.module.d.ts
node_modules/@covalent/core/sidesheet/README.md

td-sidesheet

Wrap the sidesheet elements you need in a td-sidesheet element.

td-sidesheet-header

td-sidesheet-header creates a header that can hold a title and an action (optional)

td-sidesheet-title

td-sidesheet-title adds a title to the header (optional)

td-sidesheet-header-action

td-sidesheet-header-action creates an action in the header (optional)

td-sidesheet-content

td-sidesheet-content creates an element to hold the content with margins that follow Material spec

td-sidesheet-actions

td-sidesheet-actions creates a sticky footer that can hold multiple actions (optional)

Setup

Import the [CovalentSidesheetModule] in your NgModule:

import { CovalentSidesheetModule } from '@covalent/core/sidesheet';
@NgModule({
  imports: [
    CovalentSidesheetModule,
    ...
  ],
  ...
})
export class MyModule {}

Usage

Basic Example:

<td-sidesheet>
  Sidesheet Content
</td-sidesheet>

Example with optional components:

<td-sidesheet>
  <td-sidesheet-header>
    <td-sidesheet-title>Sidesheet Title</td-sidesheet-title>
    <button mat-icon-button td-sidesheet-header-action>
      ... add button for sidesheet action
    </button>
  </td-sidesheet-header>
  <td-sidesheet-content>
    Sidesheet Content
  </td-sidesheet-content>
  <td-sidesheet-actions>
    ... add button elements
  </td-sidesheet-actions>
</td-sidesheet>