shadow
The wje-sliding-container page was auto-generated to keep API documentation coverage in sync with the current component set.
Detailed usage and best-practice guidance will be expanded in the next content phase.
Use wje-sliding-container to compose stable page structure with clear visual and semantic hierarchy.
Do not use layout components to handle business logic or application orchestration.
Preserve document semantics (header, main, aside, footer) and logical tab/focus order.
- Define mobile/desktop breakpoints first, then refine visual details.
- Prefer spacing tokens over ad-hoc margin/padding overrides.
- Test keyboard and screen reader behavior for overflow scenarios.
| Description | The maximum width of the SlidingContainer. |
| Attribute | max-width |
| Type | string |
| Default | - |
| Description | The maximum height of the SlidingContainer. |
| Attribute | max-height |
| Type | string |
| Default | - |
| Description | The trigger for the SlidingContainer. |
| Attribute | trigger |
| Type | string |
| Default | - |
| Description | Specifies the sliding direction of the container (e.g., 'left' or 'right'). |
| Attribute | direction |
| Type | string |
| Default | - |
| Description | Determines how the SlidingContainer behaves, such as 'over' or 'in-place'. |
| Attribute | variant |
| Type | string |
| Default | - |
| Description | The width (in pixels) at which the SlidingContainer switches to the "over" variant for smaller screens. |
| Attribute | screen-break-point |
| Type | string |
| Default | - |
| Description | Removes the child after the SlidingContainer is closed. |
| Attribute | remove-child-after-close |
| Type | boolean |
| Default | - |
| Description | Specifies the duration (in milliseconds) of the sliding animation. |
| Attribute | animation-duration |
| Type | string |
| Default | - |
| Description | Specifies the easing function used for the sliding animation (e.g., 'linear', 'ease-in', 'ease-out'). |
| Attribute | animation-easing |
| Type | string |
| Default | - |
| Description | Sets the opacity of the SlidingContainer. |
| Attribute | has-opacity |
| Type | boolean |
| Default | - |
| Name | Description |
|---|
wje-sliding-container:beforeOpen | Emitted when the component opens. |
wje-sliding-container:open | Emitted when the component is opened. |
wje-sliding-container:beforeClose | Emitted when the component closes. |
wje-sliding-container:afterClose | Emitted when the component closes. |
| Description | Creates and returns a styled close button element with an icon, including an event listener to trigger the close method. |
| Signature | () => HTMLElement |
| Description | Retrieves the parent element of the current element. If the parent element is not found, it attempts to find the root host element. |
| Signature | () => Element|null |
| Description | Adjusts the position and dimensions of the current element based on the specified variant. The method handles modifications to the element's positioning style, aligns it relative to its parent, and manages alignment to its siblings based on the specified direction. |
| Signature | (variant: string) => void |
| Description | Executes before the element is opened. |
| Signature | (e: any) => void |
| Description | Callback function called after the element is opened. |
| Signature | (e: any) => void |
| Description | Executes before closing the element. |
| Signature | (e: any) => void |
| Description | Callback function that is called after the container is closed. |
| Signature | (e: any) => void |
| Description | Animates the transition of elements with specified options, toggling the visibility and/or dimensions of the associated elements based on their current state. This method handles both forward and reverse animations for two elements (transparentDiv and nativeElement) with optional opacity changes. It ensures smooth transitioning by canceling any previous animations on the provided elements before initiating a new animation sequence. |
| Signature | () => Promise<void> |
| Description | Opens the sliding container by performing necessary preparatory and transitional operations. |
| Signature | (e: Event) => Promise<void> |
| Description | Closes the sliding container and performs associated operations such as animations and event dispatches. |
| Signature | (e: Event) => Promise<void> |
| Description | Toggles the state between open and closed. |
| Signature | (e: Event) => Promise<void> |
| Description | Cleans up resources associated with the component by disconnecting the resize observer and setting it to null. |
| Signature | () => void |
| Name | Description |
|---|
| `` | Styles the element. |
No CSS custom properties available for this component.
| Name | Description |
|---|
default | The default slot for the SlidingContainer. |