form.d.ts 787 B

12345678910111213141516171819202122232425
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlForm extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. form: HTMLElement;
  6. private formControls;
  7. novalidate: boolean;
  8. slSubmit: EventEmitter<{
  9. formData: FormData;
  10. formControls: HTMLElement[];
  11. }>;
  12. connectedCallback(): void;
  13. getFormData(): FormData;
  14. getFormControls(): HTMLElement[];
  15. submit(): boolean;
  16. handleClick(event: MouseEvent): void;
  17. handleKeyDown(event: KeyboardEvent): void;
  18. serializeElement(el: HTMLElement, formData: FormData): void | null;
  19. render(): import("lit-html").TemplateResult<1>;
  20. }
  21. declare global {
  22. interface HTMLElementTagNameMap {
  23. 'sl-form': SlForm;
  24. }
  25. }