kopia lustrzana https://github.com/shoelace-style/shoelace
add getForm() method
rodzic
df967b7e84
commit
776ab2c715
|
@ -267,6 +267,11 @@ export class FormControlController implements ReactiveController {
|
|||
}
|
||||
}
|
||||
|
||||
/** Returns the associated `<form>` element, if one exists. */
|
||||
getForm() {
|
||||
return this.form ?? null;
|
||||
}
|
||||
|
||||
/** Resets the form, restoring all the control to their default value */
|
||||
reset(invoker?: HTMLInputElement | SlButton) {
|
||||
this.doAction('reset', invoker);
|
||||
|
|
Ładowanie…
Reference in New Issue