UNPKG

1.77 kBTypeScriptView Raw
1import { AfterContentInit, OnDestroy, QueryList } from '@angular/core';
2import { Subject } from 'rxjs';
3import { NbBooleanInput } from '../helpers';
4import { NbOptionComponent } from './option.component';
5import * as i0 from "@angular/core";
6/**
7 * NbOptionGroupComponent
8 *
9 * @styles
10 *
11 * option-group-text-color:
12 * option-group-tiny-start-padding:
13 * option-group-small-start-padding:
14 * option-group-medium-start-padding:
15 * option-group-large-start-padding:
16 * option-group-giant-start-padding:
17 **/
18export declare class NbOptionGroupComponent implements AfterContentInit, OnDestroy {
19 protected destroy$: Subject<void>;
20 title: string;
21 get disabled(): boolean;
22 set disabled(value: boolean);
23 protected _disabled: boolean;
24 static ngAcceptInputType_disabled: NbBooleanInput;
25 get disabledAttribute(): '' | null;
26 options: QueryList<NbOptionComponent<any>>;
27 ngAfterContentInit(): void;
28 ngOnDestroy(): void;
29 /**
30 * Sets disabled state for each option to current group disabled state.
31 */
32 protected updateOptionsDisabledState(): void;
33 /**
34 * Updates options disabled state after promise resolution.
35 * This way change detection will be triggered after options state updated.
36 * Use this method when updating options during change detection run (e.g. QueryList.changes, lifecycle hooks).
37 */
38 protected asyncUpdateOptionsDisabledState(): void;
39 static ɵfac: i0.ɵɵFactoryDeclaration<NbOptionGroupComponent, never>;
40 static ɵcmp: i0.ɵɵComponentDeclaration<NbOptionGroupComponent, "nb-option-group", never, { "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["options"], ["nb-option, ng-container"], false, never>;
41}