ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
41 lines (40 loc) • 1.86 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 { 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;
onChange: OnChangeType;
onTouched: OnTouchedType;
options: NzCheckBoxOptionInterface[];
nzDisabled: boolean;
dir: Direction;
private destroy$;
private isNzDisableFirstChange;
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, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzCheckboxGroupComponent, "nz-checkbox-group", ["nzCheckboxGroup"], { "nzDisabled": { "alias": "nzDisabled"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_nzDisabled: unknown;
}