Milk Admin
Core
- Install Module Documentation
- API
- Query Builder
- RuleBuilder - Schema Definition
- File Class
- Http Client
- Cli
- Database (MySQL/SQLite/ArrayDB)
- Get
- Hooks Class
- Multi Language support
- Mails
- Messages
- Multi-Database Support
- Permissions Class
- Response
- Route
- Sanitize
- Create/modify db tables
- Storage custom Settings
- Token
Theme
Dynamic Table
Template: Offcanvas
An offcanvas is a sidebar that opens to the right of the page. This sidebar is managed by javascript.
The contents shown are like element details or form edits.
<button class="btn btn-primary" onclick="offcanvasTest1()">Show Offcanvas</button>
<script>
function offcanvasTest1() {
window.offcanvasEnd.show()
window.offcanvasEnd.title('Offcanvas Test')
window.offcanvasEnd.body(`<button class="btn btn-primary" onclick="window.offcanvasEnd.hide()">Hide Offcanvas</button>`);
}
</script>
Properties
The Offcanvas class is instantiated in window.offcanvasEnd and provides the following methods:
show()- shows the sidebarhide()- hides the sidebartitle()- sets the title of the sidebarbody()- sets the content of the sidebarsize()- sets the size of the sidebar xl | empty
Loading...