File

src/tabs/tabs-vertical-grouped.component.ts

Description

TabsVerticalGrouped is the vertical-orientation counterpart of the "tab-header-group" composition pattern. It is a thin wrapper that supplies the layout context (cds--css-grid and an explicit height).

Example :
<cds-tabs-vertical-grouped height="400px">
  <cds-tab-header-group-vertical>
    <cds-tab-header [paneReference]="content1">Dashboard</cds-tab-header>
    <cds-tab-header [paneReference]="content2"
      secondaryLabel="(21/25)" [dismissable]="true">
      Monitoring
    </cds-tab-header>
  </cds-tab-header-group-vertical>

  <cds-tab #content1>Tab Content 1</cds-tab>
  <cds-tab #content2>Tab Content 2</cds-tab>
</cds-tabs-vertical-grouped>

Metadata

Index

Properties
Inputs
HostBindings
Accessors

Inputs

height
Type : string

Optional: explicit height for the vertical tab list container. Accepts any valid CSS height value.

HostBindings

class.cds--css-grid
Type : boolean
Default value : true
style.height
Type : string

Properties

cssGridClass
Default value : true
Decorators :
@HostBinding('class.cds--css-grid')

Accessors

hostHeight
gethostHeight()
import {
	Component,
	HostBinding,
	Input
} from "@angular/core";

/**
 * `TabsVerticalGrouped` is the vertical-orientation counterpart of the
 * "tab-header-group" composition pattern. It is a thin wrapper that
 * supplies the layout context (`cds--css-grid` and an explicit height).
 *
 * ```html
 * <cds-tabs-vertical-grouped height="400px">
 *   <cds-tab-header-group-vertical>
 *     <cds-tab-header [paneReference]="content1">Dashboard</cds-tab-header>
 *     <cds-tab-header [paneReference]="content2"
 *       secondaryLabel="(21/25)" [dismissable]="true">
 *       Monitoring
 *     </cds-tab-header>
 *   </cds-tab-header-group-vertical>
 *
 *   <cds-tab #content1>Tab Content 1</cds-tab>
 *   <cds-tab #content2>Tab Content 2</cds-tab>
 * </cds-tabs-vertical-grouped>
 * ```
 */
@Component({
	selector: "cds-tabs-vertical-grouped, ibm-tabs-vertical-grouped",
	template: `<ng-content></ng-content>`
})
export class TabsVerticalGrouped {
	/**
	 * **Optional**: explicit height for the vertical tab list container. Accepts
	 * any valid CSS height value.
	 */
	@Input() height: string;

	@HostBinding("class.cds--css-grid") cssGridClass = true;

	@HostBinding("style.height") get hostHeight() {
		return this.height || null;
	}
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""