mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Fix metadata comments
This commit is contained in:
@@ -43,8 +43,7 @@ export class SlForm extends LitElement {
|
||||
* Emitted when the form is submitted. This event will not be emitted if any form control inside of
|
||||
* it is in an invalid state, unless the form has the `novalidate` attribute. Note that there is never a need to prevent
|
||||
* this event, since it doen't send a GET or POST request like native forms. To "prevent" submission, use a conditional
|
||||
* around the XHR request you use to submit the form's data with. Event details will contain:
|
||||
* `{ formData: FormData; formControls: HTMLElement[] }`
|
||||
* around the XHR request you use to submit the form's data with.
|
||||
*/
|
||||
@event('sl-submit') slSubmit: EventEmitter<{ formData: FormData; formControls: HTMLElement[] }>;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export class SlIcon extends LitElement {
|
||||
/** Emitted when the icon has loaded. */
|
||||
@event('sl-load') slLoad: EventEmitter<void>;
|
||||
|
||||
/** Emitted when the icon failed to load. Event details may include: `{ status: number }` */
|
||||
/** Emitted when the icon failed to load. */
|
||||
@event('sl-error') slError: EventEmitter<{ status: number }>;
|
||||
|
||||
connectedCallback() {
|
||||
|
||||
@@ -13,6 +13,7 @@ export class SlResizeObserver extends LitElement {
|
||||
private resizeObserver: ResizeObserver;
|
||||
private observedElements: HTMLElement[] = [];
|
||||
|
||||
/** Emitted when the element is resized. */
|
||||
@event('sl-resize') slResize: EventEmitter<{ entries: ResizeObserverEntry[] }>;
|
||||
|
||||
connectedCallback() {
|
||||
|
||||
Reference in New Issue
Block a user