Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Examples
Sheet Sides
External Trigger
Installation
templui add sheetLoad the script once in your layout:
<head>
@sheet.Script()
</head>API Reference
Sheet
| Name | Type | Default |
|---|---|---|
Optional HTML id for the sheet root. Useful for external targeting. | | |
Additional CSS classes to apply to the sheet wrapper | | |
Additional HTML attributes to apply to the sheet wrapper | | |
Side from which the sheet slides in (top, right, bottom, left) | | |
Whether the sheet should be open initially | | |
Disable closing the sheet when clicking the backdrop | | |
Disable closing the sheet with the ESC key | | |
Trigger
| Name | Type | Default |
|---|---|---|
Unique identifier for the trigger element | | |
Additional CSS classes to apply to the trigger | | |
Additional HTML attributes to apply to the trigger | | |
Optional sheet root id for external triggers outside Sheet wrapper | | |
Content
| Name | Type | Default |
|---|---|---|
Additional CSS classes to apply to the content container | | |
Additional HTML attributes to apply to the content container | | |
Hide the close X button in the top right corner | | |
Side from which the sheet slides in. Usually inherited from Sheet. | | |
Header
| Name | Type | Default |
|---|---|---|
Unique identifier for the header element | | |
Additional CSS classes to apply to the header | | |
Additional HTML attributes to apply to the header | | |
Title
| Name | Type | Default |
|---|---|---|
Unique identifier for the title element | | |
Additional CSS classes to apply to the title | | |
Additional HTML attributes to apply to the title | | |
Description
| Name | Type | Default |
|---|---|---|
Unique identifier for the description element | | |
Additional CSS classes to apply to the description | | |
Additional HTML attributes to apply to the description | | |
Close
| Name | Type | Default |
|---|---|---|
Unique identifier for the close button | | |
Additional CSS classes to apply to the close button | | |
Additional HTML attributes to apply to the close button | | |