UNPKG

@nebular/theme

Version:
42 lines (41 loc) 1.77 kB
import { AfterContentInit, OnDestroy, QueryList } from '@angular/core'; import { Subject } from 'rxjs'; import { NbBooleanInput } from '../helpers'; import { NbOptionComponent } from './option.component'; import * as i0 from "@angular/core"; /** * NbOptionGroupComponent * * @styles * * option-group-text-color: * option-group-tiny-start-padding: * option-group-small-start-padding: * option-group-medium-start-padding: * option-group-large-start-padding: * option-group-giant-start-padding: **/ export declare class NbOptionGroupComponent implements AfterContentInit, OnDestroy { protected destroy$: Subject<void>; title: string; get disabled(): boolean; set disabled(value: boolean); protected _disabled: boolean; static ngAcceptInputType_disabled: NbBooleanInput; get disabledAttribute(): '' | null; options: QueryList<NbOptionComponent<any>>; ngAfterContentInit(): void; ngOnDestroy(): void; /** * Sets disabled state for each option to current group disabled state. */ protected updateOptionsDisabledState(): void; /** * Updates options disabled state after promise resolution. * This way change detection will be triggered after options state updated. * Use this method when updating options during change detection run (e.g. QueryList.changes, lifecycle hooks). */ protected asyncUpdateOptionsDisabledState(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NbOptionGroupComponent, never>; 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>; }