dvixi / yii2-icon-select
yii2 widget for image-icons choosing, based on iconselect.js
Installs: 557
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Language:JavaScript
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-13 21:06:22 UTC
README
Yii2 image\icon picker, based on iconselect.js.
##Installation
composer require dvixi/yii2-icon-select
##Usage
$items = [
"icon1.png",
"icon2.png",
];
echo \dvixi\IconSelectWidget::widget([
'model' => $model,
'attribute' => 'attributeName',
'items' => $items,
'options' => [
//Html::activeInput() options
],
'pluginOptions' => [
// iconselect.js options
],
]);
OR
echo $form->field($model, 'attribute')->widget(\dvixi\IconSelectWidget::className(), [
'items' => $items,
'pluginOptions' => [...],
]);