Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. <?= Sortable::widget([
  2.                                 'items' => $value['items'],
  3.                                 'options' => ['tag' => 'ul', 'class'=>'tables nav nav-stacked', 'data'=>['id'=>'table-' . $key],'style' => 'min-height: 400px'],
  4.                                 'itemOptions' => ['tag' => 'li'],
  5.                                 'pluginOptions' => [
  6.                                     'cursor' => 'move',
  7.                                     'helper' => 'clone',
  8.                                     'connectWith'=>'.tables',
  9.                                     //'placeholder' => 'ui-state-default',
  10.                                     //'forcePlaceholderSize' => true,
  11.                                 ],
  12.                                 'pluginEvents' =>[
  13.                                     'sortupdate' => 'function(event, ui) {
  14.                                        console.log(ui.item)
  15.                                        }',
  16.                                 ]
  17.                             ]);
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement