Answer the question
In order to leave comments, you need to log in
How to convert nestable yii2?
How to remake it
<!--<div class="dd" id="nestable">-->
<!-- <ol class="dd-list">-->
<!-- <li class="dd-item" data-id="1">-->
<!-- <div class="dd-handle">Item 1</div>-->
<!-- </li>-->
<!-- <li class="dd-item" data-id="11">-->
<!-- <div class="dd-handle">Item 11</div>-->
<!-- </li>-->
<!-- <li class="dd-item" data-id="12">-->
<!-- <div class="dd-handle">Item 12</div>-->
<!-- </li>-->
<!-- </ol>-->
<!--</div>-->
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'tableOptions' => ['id' => 'nestable'],
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'name',
'created_at:datetime',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question