Download the PHP package andisiahaan/livewire-dialog without Composer
On this page you can find all versions of the php package andisiahaan/livewire-dialog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download andisiahaan/livewire-dialog
More information about andisiahaan/livewire-dialog
Files in andisiahaan/livewire-dialog
Download andisiahaan/livewire-dialog
More information about andisiahaan/livewire-dialog
Files in andisiahaan/livewire-dialog
Vendor andisiahaan
Package livewire-dialog
Short Description A powerful Livewire dialog system with stack management, multiple dialog types, and rich customization
License MIT
Package livewire-dialog
Short Description A powerful Livewire dialog system with stack management, multiple dialog types, and rich customization
License MIT
Please rate this library. Is it a good library?
Informations about the package livewire-dialog
Livewire Dialog
A powerful dialog system for Laravel Livewire with stack management, multiple dialog types (Modal, Sheet, Drawer), and rich customization options.
Features
- Stack-Based Management - Open multiple dialogs with automatic history management
- Multiple Dialog Types - Modal, Sheet (bottom slide), Drawer (side slide), Alert, Confirm
- Configurable Animations - Fade, Scale, Slide-up, Slide-down, Slide-left, Slide-right
- Position Options - Center, Top, Bottom, Left, Right
- Preset System - Reusable configuration presets
- Lifecycle Hooks -
onOpening(),onClosing(),onClosed() - Fluent Configuration -
DialogOptions::make()->size('lg')->dismissible() - Full Livewire 4 Support
Installation
Quick Start
1. Add Dialog Container
Add the Livewire directive to your layout (before </body>):
2. Create a Dialog Component
3. Open the Dialog
Opening Dialogs
Via JavaScript
Via Dialog Facade (PHP)
Via Trait
Via Helper Functions
Dismissing Dialogs
From View
From Component
Dialog Options
Override dialogOptions() in your dialog:
Using Presets
Define presets in config/dialog.php:
Use them in your dialog:
Lifecycle Hooks
Override these methods in your dialog component:
TailwindCSS Setup
Add the package views to your tailwind.config.js:
Configuration
Publish the config file:
Publish the views:
API Reference
Dialog Facade Methods
| Method | Description |
|---|---|
Dialog::open($component, $args, $options) |
Open a dialog |
Dialog::modal($component, $args) |
Open a modal dialog |
Dialog::sheet($component, $args) |
Open a sheet (bottom slide) |
Dialog::drawer($component, $args, $position) |
Open a drawer (side slide) |
Dialog::alert($title, $message) |
Show an alert dialog |
Dialog::confirm($title, $message, $confirmText, $cancelText) |
Show a confirm dialog |
Dialog::dismiss() |
Dismiss current dialog |
Dialog::dismissAll() |
Dismiss all dialogs |
JavaScript API
| Method | Description |
|---|---|
DialogSystem.open(component, args, options) |
Open a dialog |
DialogSystem.dismiss(force) |
Dismiss current dialog |
DialogSystem.dismissAll() |
Dismiss all dialogs |
Dialog Component Methods
| Method | Description |
|---|---|
dismiss() |
Dismiss the dialog |
dismissWith($data) |
Dismiss with data |
dismissWithEvents($events) |
Dismiss and dispatch events |
replace($component, $args) |
Replace with another dialog |
forceAll() |
Chain: force close all |
skipPrevious($count) |
Chain: skip previous dialogs |
License
MIT License. See LICENSE for more information.
All versions of livewire-dialog with dependencies
PHP Build Version
Package Version
The package andisiahaan/livewire-dialog contains the following files
Loading the files please wait ...