ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
41 lines (40 loc) • 1.9 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { FocusMonitor } from '@angular/cdk/a11y';
import { Direction, Directionality } from '@angular/cdk/bidi';
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { BooleanInput, OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types';
import * as i0 from "@angular/core";
export interface NzCheckBoxOptionInterface {
label: string;
value: string;
checked?: boolean;
disabled?: boolean;
}
export declare class NzCheckboxGroupComponent implements ControlValueAccessor, OnInit, OnDestroy {
private elementRef;
private focusMonitor;
private cdr;
private directionality;
static ngAcceptInputType_nzDisabled: BooleanInput;
onChange: OnChangeType;
onTouched: OnTouchedType;
options: NzCheckBoxOptionInterface[];
nzDisabled: boolean;
dir: Direction;
private destroy$;
trackByOption(_: number, option: NzCheckBoxOptionInterface): string;
onCheckedChange(option: NzCheckBoxOptionInterface, checked: boolean): void;
constructor(elementRef: ElementRef, focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, directionality: Directionality);
ngOnInit(): void;
ngOnDestroy(): void;
writeValue(value: NzCheckBoxOptionInterface[]): void;
registerOnChange(fn: OnChangeType): void;
registerOnTouched(fn: OnTouchedType): void;
setDisabledState(disabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCheckboxGroupComponent, [null, null, null, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzCheckboxGroupComponent, "nz-checkbox-group", ["nzCheckboxGroup"], { "nzDisabled": "nzDisabled"; }, {}, never, never>;
}