- Usage
- Resources
Usage ¶
Widget ¶
echo \kotchuprik\medium\Widget::widget([
'model' => $model,
'attribute' => 'attribute',
]);
Widget with settings ¶
echo \kotchuprik\medium\Widget::widget([
'model' => $model,
'attribute' => 'attribute',
'theme' => 'bootstrap',
'settings' => [
'buttons' => ['bold', 'italic', 'quote'],
],
]);
ActiveForm widget ¶
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className());
ActiveForm widget with settings ¶
echo $form->field($model, 'attribute')->widget(\kotchuprik\medium\Widget::className(), [
'theme' => 'bootstrap',
'settings' => [
'buttons' => ['bold', 'italic', 'quote'],
],
]);
Resources ¶
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.