ng-devui
Version:
DevUI components based on Angular
36 lines (35 loc) • 2.06 kB
TypeScript
import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { DevConfigService } from 'ng-devui/utils';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class CheckBoxGroupComponent implements OnChanges, ControlValueAccessor {
private devConfigService;
static ID_SEED: number;
name: string;
itemWidth: number;
color: any;
direction: 'row' | 'column';
isShowTitle: boolean;
disabled: boolean;
options: any[];
filterKey: string;
labelTemplate: TemplateRef<any>;
showAnimation: boolean;
beforeChange: (value: any) => boolean | Promise<boolean> | Observable<boolean>;
change: EventEmitter<boolean>;
values: any[];
options_display: any[];
private onChange;
private onTouch;
constructor(devConfigService: DevConfigService);
ngOnChanges(changes: SimpleChanges): void;
checkType(): void;
writeValue(inputArray: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
toggle($event: any, i: any): void;
getCheckedArray(): any[];
static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxGroupComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxGroupComponent, "d-checkbox-group", never, { "name": { "alias": "name"; "required": false; }; "itemWidth": { "alias": "itemWidth"; "required": false; }; "color": { "alias": "color"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "isShowTitle": { "alias": "isShowTitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "options": { "alias": "options"; "required": false; }; "filterKey": { "alias": "filterKey"; "required": false; }; "labelTemplate": { "alias": "labelTemplate"; "required": false; }; "showAnimation": { "alias": "showAnimation"; "required": false; }; "beforeChange": { "alias": "beforeChange"; "required": false; }; }, { "change": "change"; }, never, never, false, never>;
}