UNPKG

@nebular/theme

Version:
39 lines (38 loc) 1.39 kB
import { AfterContentInit, OnDestroy, QueryList } from '@angular/core'; import { Subject } from 'rxjs'; import { NbBooleanInput } from '../helpers'; import { NbOptionComponent } from './option.component'; /** * 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; }