Download the PHP package antkaz/yii2-ajax without Composer
On this page you can find all versions of the php package antkaz/yii2-ajax. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-ajax
yii2-ajax
This extension allows you to create forms in the Twitter Bootstrap modal window.
Documentation is at docs/README.md
Installation
The preferred way to install this extension is through composer.
Run
or add
to the require section of your composer.json
file.
Basic usage
-
Аdd the modal widget to your view file:
-
Add a link that will open the modal window:
-
Add the
data-ajax
attribute in the ActiveForm options: - Create an action in your controller that will handle this request:
Attributes
Link attributes for loading the modal window:
data-toggle
- Toggle for enabled ajax-modal (required valueajax-modal
);data-target
- Bootstrap modal selector;data-title
- Modal title;data-gridview
- Yii2 GridView selector for group operations.
Events
Added the following events, in addition to those that already exist
submit.success.bs.modal
- This event is triggered after the form has been successfully submitted. The second parameter is the content of the response:
All versions of yii2-ajax with dependencies
PHP Build Version
Package Version
The package antkaz/yii2-ajax contains the following files
Loading the files please wait ....