add custom state types to wa form control

This commit is contained in:
Cory LaViska
2024-12-17 11:26:33 -05:00
parent 4a046684c8
commit 7c40243da3

View File

@@ -142,6 +142,12 @@ export interface WebAwesomeFormControl extends WebAwesomeElement {
reportValidity: () => boolean;
setCustomValidity: (message: string) => void;
// Custom state methods
hasCustomState: (state: string) => boolean;
addCustomState: (state: string) => void;
deleteCustomState(state: string): void;
toggleCustomState(state: string, force: boolean): void;
// Form properties
hasInteracted: boolean;
valueHasChanged?: boolean;