Download the PHP package m-comscience/yii2-widget-sweetalert2 without Composer
On this page you can find all versions of the php package m-comscience/yii2-widget-sweetalert2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m-comscience/yii2-widget-sweetalert2
More information about m-comscience/yii2-widget-sweetalert2
Files in m-comscience/yii2-widget-sweetalert2
Package yii2-widget-sweetalert2
Short Description SweetAlert2 widget for Yii2 framework
License BSD-3-Clause
Homepage https://github.com/MComScience/yii2-widget-sweetalert2
Informations about the package yii2-widget-sweetalert2
Yii2 Extension
Installation
The preferred way to install this extension is through composer.
Install
Usage
Popup Types:
Use Flash message Alert
View:
Controller:
Usage Widget
View:
A basic message
A title with a text under
success message!
A custom positioned dialog
A message with auto close timer
Custom HTML description and buttons with ARIA labels
Custom animation Animate.css
Example:
A confirm dialog, with a function attached to the "Confirm"-button...
... and by passing a parameter, you can execute something else for "Cancel".
INPUT TYPES
Type Text:
Type Email:
Type Password:
Type Textarea:
Type Select:
Type Radio:
Type Checkbox:
Type File:
Type Range:
Multiple inputs aren't supported, you can achieve them by using html
and preConfirm
parameters.
Inside the preConfirm()
function you can pass the custom result to the resolve()
function as a parameter:
Ajax request example
All versions of yii2-widget-sweetalert2 with dependencies
yiisoft/yii2-bootstrap Version ~2.0.0
bower-asset/sweetalert2 Version ^7.25.0
daneden/animate.css Version ^3.5