Kode Solusi Masalah pencarian select2 Kartik yii2 tidak berfungsi

Arwan Prianto Mangidi
0


 

    <!-- MODAL ATUR STATUS -->

    <?php Modal::begin([
        'options' => ['id' => 'AturStatus', 'tabIndex' => false],
        'title' => 'Atur Status',
        'toggleButton' => false, // agar pencarian berfungsi
    ]);

    $form = ActiveForm::begin(['action' => ['/pilih-pembimbing/index', 'nim' => $nim]]);

    echo $form->field($modelPengajuanJudul, 'status_judul_id')->widget(Select2::class, [
        'data' => ArrayHelper::map($statusJudul, 'id', 'nama_status'),
        'options' => ['placeholder' => 'Pilih Status ...'],
        'pluginOptions' => [
            'allowClear' => true,
            'dropdownParent' => '#AturStatus' // agar tampilan list tidak terpotong
        ],
    ]);
    ?>

    <div class="row">
        <div class="col-12 d-grid">
            <?= Html::submitButton('Simpan', ['class' => 'btn btn-success']) ?>
        </div>
    </div>
    <?php
    ActiveForm::end();

    Modal::end(); ?>

Posting Komentar

0 Komentar
Posting Komentar (0)