jb-checkbox
Version:
checkbox web component
45 lines • 1.91 kB
TypeScript
import { ValidationHelper, type ShowValidationErrorParameters, type WithValidation } from 'jb-validation';
import type { JBFormInputStandards, JBFormWebComponent } from 'jb-form';
import type { 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 checked(): 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();
get form(): HTMLFormElement | JBFormWebComponent | null;
formAssociatedCallback?: ((form: HTMLFormElement | null) => void) | undefined;
formResetCallback?: (() => void) | undefined;
formDisabledCallback?: ((disabled: boolean) => void) | undefined;
formStateRestoreCallback?: ((state: string | File | FormData | null, mode: 'autocomplete' | 'restore') => void) | undefined;
connectedCallback(): void;
callOnLoadEvent(): void;
callOnInitEvent(): 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(options?: FocusOptions): void;
showValidationError(error: ShowValidationErrorParameters): void;
clearValidationError(): void;
get validationMessage(): string;
checkValidity(): boolean;
reportValidity(): boolean;
}
//# sourceMappingURL=jb-checkbox.d.ts.map