jb-checkbox
Version:
checkbox web component
40 lines • 1.47 kB
TypeScript
import { ValidationHelper, type ShowValidationErrorParameters, type WithValidation } from 'jb-validation';
import { type JBFormInputStandards } from 'jb-form';
import { ElementsObject } from './types.js';
export * from './types.js';
export declare class JBCheckboxWebComponent extends HTMLElement implements WithValidation, JBFormInputStandards<boolean> {
#private;
static get formAssociated(): boolean;
elements: ElementsObject;
get value(): boolean;
set value(value: boolean);
get validation(): ValidationHelper<boolean>;
get name(): string;
initialValue: boolean;
get isDirty(): boolean;
set required(value: boolean);
get required(): boolean;
isAutoValidationDisabled: boolean;
get disabled(): boolean;
set disabled(value: boolean);
constructor();
connectedCallback(): void;
callOnLoadEvent(): void;
callOnInitEvent(): void;
initWebComponent(): void;
registerEventListener(): void;
initProp(): void;
static get observedAttributes(): string[];
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
onAttributeChange(name: string, value: string): void;
/**
* @public
*/
focus(): void;
showValidationError(error: ShowValidationErrorParameters): void;
clearValidationError(): void;
get validationMessage(): string;
checkValidity(): boolean;
reportValidity(): boolean;
}
//# sourceMappingURL=jb-checkbox.d.ts.map