Skip to content

Commit

Permalink
docs(selection-panel): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Jan 25, 2024
1 parent c7141c5 commit a0be039
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/components/selection-panel/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ It's also possible to display the `sbb-selection-panel` without border by settin

## Events

| Name | Type | Description | Inherited From |
| ----------- | ------------------------------------------- | ----------------------------------------------------------------- | -------------- |
| `willOpen` | `CustomEvent<void>` | Emits whenever the content section starts the opening transition. | |
| `didOpen` | `CustomEvent<void>` | Emits whenever the content section is opened. | |
| `willClose` | `CustomEvent<{ closeTarget: HTMLElement }>` | Emits whenever the content section begins the closing transition. | |
| `didClose` | `CustomEvent<{ closeTarget: HTMLElement }>` | Emits whenever the content section is closed. | |
| Name | Type | Description | Inherited From |
| ----------- | ------------------- | ----------------------------------------------------------------- | -------------- |
| `willOpen` | `CustomEvent<void>` | Emits whenever the content section starts the opening transition. | |
| `didOpen` | `CustomEvent<void>` | Emits whenever the content section is opened. | |
| `willClose` | `CustomEvent<void>` | Emits whenever the content section begins the closing transition. | |
| `didClose` | `CustomEvent<void>` | Emits whenever the content section is closed. | |

## Slots

Expand Down
8 changes: 4 additions & 4 deletions src/components/selection-panel/selection-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import '../divider';
* @slot content - Use this slot to provide custom content for the panel (optional).
* @event {CustomEvent<void>} willOpen - Emits whenever the content section starts the opening transition.
* @event {CustomEvent<void>} didOpen - Emits whenever the content section is opened.
* @event {CustomEvent<{ closeTarget: HTMLElement }>} willClose - Emits whenever the content section begins the closing transition.
* @event {CustomEvent<{ closeTarget: HTMLElement }>} didClose - Emits whenever the content section is closed.
* @event {CustomEvent<void>} willClose - Emits whenever the content section begins the closing transition.
* @event {CustomEvent<void>} didClose - Emits whenever the content section is closed.
*/
@customElement('sbb-selection-panel')
export class SbbSelectionPanelElement extends LitElement {
Expand Down Expand Up @@ -68,13 +68,13 @@ export class SbbSelectionPanelElement extends LitElement {
);

/** Emits whenever the content section begins the closing transition. */
private _willClose: EventEmitter<{ closeTarget: HTMLElement }> = new EventEmitter(
private _willClose: EventEmitter<void> = new EventEmitter(
this,
SbbSelectionPanelElement.events.willClose,
);

/** Emits whenever the content section is closed. */
private _didClose: EventEmitter<{ closeTarget: HTMLElement }> = new EventEmitter(
private _didClose: EventEmitter<void> = new EventEmitter(
this,
SbbSelectionPanelElement.events.didClose,
);
Expand Down

0 comments on commit a0be039

Please sign in to comment.