Components for the PHP-based yii framework
Questions tagged [yii-widgets]
64 questions
35
votes
7 answers
Hide label for input field
I am trying to hide the label for a specific field in _form.php without success.
I have tried couple of variation like, but none is working:
= $form->field($model, 'sample_text')->textArea('label'=>false) ?>
and alternate code:
=…

Joshi
- 2,730
- 5
- 36
- 62
26
votes
5 answers
Create button with link in Yii2
I am trying to setup a button with a link to a view. However yii\bootstrap\Button does not have a property url. I would rather use Yii as supposed to just use flat out php. The code as below would be the ideal situation, but since the url option…

Wijnand
- 1,192
- 4
- 16
- 28
24
votes
6 answers
How to add class to ActiveForm in Yii 2.0 framework?
I'd like to add a class to the form like:
6
votes
3 answers
Split ActiveForm fields into different tabs with Tabs widget
I'm creating a form view and I want to organize the form fields with tabs structure, using the official Tabs widget.
Is it possible init the Tabs widget with the id (or class) of the div elements that contains the active form fields?

AleCat83
- 1,443
- 3
- 22
- 41
5
votes
1 answer
Yii2 dosamigos Ckeditor Language Direction
In Yii2 Ckeditor , I am using
use dosamigos\ckeditor\CKEditor;
this extension for showing ckeditor in form
= $form->field($model, 'cmsdetails_ar')->widget(CKEditor::className(), [
'options' => ['rows' => 6],
'preset' =>…

Biju s
- 420
- 1
- 7
- 16
4
votes
2 answers
YII2 add colspan in gridview header
How to add a colspan in a header in gridview??
Normally a header looks like this...
Header1 | Header2 | Header3 | …
---|