kartik-v / yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).
http://demos.krajee.com/widget-details/select2
Other
323 stars 145 forks source link

how to use maximumSelectionLength in View Yii2? #213

Closed Global90 closed 5 years ago

Global90 commented 7 years ago

how to use maximumSelectionLength in View Yii2?

dont work for me.

Code in view:


<?php
            echo Select2::widget([
                'model' => $modelKhadamatDarmani,
                'name' => 'KhadamatDarmani',
                'data' => $data,
                'showToggleAll' => false,
                'options' => [
                    'placeholder' => 'Select Item',
                    'multiple' => true,
                    'allowClear' => true,
                    'maximumSelectionLength' => 2,
                    'minimumInputLength' => 2,
                ],
            ]);
            ?>
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.