mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
add custom state types to wa form control
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user