igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
175 lines (174 loc) • 5.05 kB
TypeScript
import { AfterViewInit } from '@angular/core';
import { CheckboxBaseDirective } from './checkbox-base.directive';
import { ControlValueAccessor } from '@angular/forms';
import { EditorProvider } from '../core/edit-provider';
import * as i0 from "@angular/core";
/**
* Allows users to make a binary choice for a certain condition.
*
* @igxModule IgxCheckboxModule
*
* @igxTheme igx-checkbox-theme
*
* @igxKeywords checkbox, label
*
* @igxGroup Data entry and display
*
* @remarks
* The Ignite UI Checkbox is a selection control that allows users to make a binary choice for a certain condition.It behaves similarly
* to the native browser checkbox.
*
* @example
* ```html
* <igx-checkbox [checked]="true">
* simple checkbox
* </igx-checkbox>
* ```
*/
export declare class IgxCheckboxComponent extends CheckboxBaseDirective implements AfterViewInit, ControlValueAccessor, EditorProvider {
/**
* Returns the class of the checkbox component.
*
* @example
* ```typescript
* let class = this.checkbox.cssClass;
* ```
*/
cssClass: string;
/**
* Returns if the component is of type `material`.
*
* @example
* ```typescript
* let checkbox = this.checkbox.material;
* ```
*/
protected get material(): boolean;
/**
* Returns if the component is of type `indigo`.
*
* @example
* ```typescript
* let checkbox = this.checkbox.indigo;
* ```
*/
protected get indigo(): boolean;
/**
* Returns if the component is of type `bootstrap`.
*
* @example
* ```typescript
* let checkbox = this.checkbox.bootstrap;
* ```
*/
protected get bootstrap(): boolean;
/**
* Returns if the component is of type `fluent`.
*
* @example
* ```typescript
* let checkbox = this.checkbox.fluent;
* ```
*/
protected get fluent(): boolean;
/**
* Sets/gets whether the checkbox component is on focus.
* Default value is `false`.
*
* @example
* ```typescript
* this.checkbox.focused = true;
* ```
* ```typescript
* let isFocused = this.checkbox.focused;
* ```
*/
focused: boolean;
/**
* Sets/gets the checkbox indeterminate visual state.
* Default value is `false`;
*
* @example
* ```html
* <igx-checkbox [indeterminate]="true"></igx-checkbox>
* ```
* ```typescript
* let isIndeterminate = this.checkbox.indeterminate;
* ```
*/
indeterminate: boolean;
/**
* Sets/gets whether the checkbox is checked.
* Default value is `false`.
*
* @example
* ```html
* <igx-checkbox [checked]="true"></igx-checkbox>
* ```
* ```typescript
* let isChecked = this.checkbox.checked;
* ```
*/
set checked(value: boolean);
get checked(): boolean;
/**
* Sets/gets whether the checkbox is disabled.
* Default value is `false`.
*
* @example
* ```html
* <igx-checkbox disabled></igx-checkbox>
* ```
* ```typescript
* let isDisabled = this.checkbox.disabled;
* ```
*/
disabled: boolean;
/**
* Sets/gets whether the checkbox is invalid.
* Default value is `false`.
*
* @example
* ```html
* <igx-checkbox invalid></igx-checkbox>
* ```
* ```typescript
* let isInvalid = this.checkbox.invalid;
* ```
*/
invalid: boolean;
/**
* Sets/gets whether the checkbox is readonly.
* Default value is `false`.
*
* @example
* ```html
* <igx-checkbox [readonly]="true"></igx-checkbox>
* ```
* ```typescript
* let readonly = this.checkbox.readonly;
* ```
*/
readonly: boolean;
/**
* Sets/gets whether the checkbox should disable all css transitions.
* Default value is `false`.
*
* @example
* ```html
* <igx-checkbox [disableTransitions]="true"></igx-checkbox>
* ```
* ```typescript
* let disableTransitions = this.checkbox.disableTransitions;
* ```
*/
disableTransitions: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCheckboxComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<IgxCheckboxComponent, "igx-checkbox", never, { "indeterminate": { "alias": "indeterminate"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disableTransitions": { "alias": "disableTransitions"; "required": false; }; }, {}, never, ["*"], true, never>;
static ngAcceptInputType_indeterminate: unknown;
static ngAcceptInputType_checked: unknown;
static ngAcceptInputType_disabled: unknown;
static ngAcceptInputType_invalid: unknown;
static ngAcceptInputType_readonly: unknown;
static ngAcceptInputType_disableTransitions: unknown;
}