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: modal
Manages the template modal.
<button class="btn btn-primary" onclick="exShowModal()">Show Modal</button>
<script>
function exShowModal() {
window.modal.show('Show modal', 'This is the body of the modal', 'footer');
}
</script>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
Properties
The Modal class is instantiated in window.modal and provides the following methods:
show(title, body, footer)- shows the modalhide()- hides the messagetitle(html)- sets the title of the modalbody(html)- sets the content of the modalfooter(html)- sets the footer of the modal
Loading...