Closed stepan-chircioglo closed 10 years ago
I tried [ 'class' => \dosamigos\grid\EditableColumn::className(), 'attribute' => 'struct', 'url' => ['editable'], 'type' => 'select', 'editableOptions' => [ //'mode' => 'inline', ], 'source' => [ ['id' => '0', 'text' => 'text1'], ['id' => '1', 'text' => 'text2'], ], ],
but receive error - Setting unknown property: dosamigos\grid\EditableColumn::source
what am I doing wrong?
@stepan-chircioglo The source should be part of editableOptions not part of the EditableColumn properties.
source
editableOptions
EditableColumn
I tried [ 'class' => \dosamigos\grid\EditableColumn::className(), 'attribute' => 'struct', 'url' => ['editable'], 'type' => 'select', 'editableOptions' => [ //'mode' => 'inline', ], 'source' => [ ['id' => '0', 'text' => 'text1'], ['id' => '1', 'text' => 'text2'], ], ],
but receive error - Setting unknown property: dosamigos\grid\EditableColumn::source
what am I doing wrong?