Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?= Sortable::widget([
- 'items' => $value['items'],
- 'options' => ['tag' => 'ul', 'class'=>'tables nav nav-stacked', 'data'=>['id'=>'table-' . $key],'style' => 'min-height: 400px'],
- 'itemOptions' => ['tag' => 'li'],
- 'pluginOptions' => [
- 'cursor' => 'move',
- 'helper' => 'clone',
- 'connectWith'=>'.tables',
- //'placeholder' => 'ui-state-default',
- //'forcePlaceholderSize' => true,
- ],
- 'pluginEvents' =>[
- 'sortupdate' => 'function(event, ui) {
- console.log(ui.item)
- }',
- ]
- ]);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement