Closed johnluxor closed 6 years ago
The plan is to enable user an option to change behavior of index
method of generated controllers in Gii. So if \Yii::$app->request->isAjax
, the data will be returned, as if it was passed to relativeDropDown
widget.
This data transformation will be used in both relativeDropDown
and altered index
widget, so moving this code to external helper is considered, but not mandatory.
Here is short todo list:
relativeDropDown
to external helperajax
requests and use moved codeajax
url/route to select2 widget and document itAfter implementing this functionality on couple of projects, I don't think that this should be generated but written by developers themselves. Select2 by kartik-v allows you to implement it easily.
Will add instructions to gitbook
add ajax loading for select2