@@ -192,8 +192,24 @@ public function renderCellContent($column, $index)
192
192
{
193
193
$ id = $ column ->getElementId ($ index );
194
194
$ name = $ column ->getElementName ($ index );
195
- $ input = $ column ->renderInput ($ name , [
196
- 'id ' => $ id
195
+
196
+ /**
197
+ * This class inherits iconMap from BaseRenderer
198
+ * If the input to be rendered is a drag column, we give it the appropriate icon class
199
+ * via the $options array
200
+ */
201
+ $ options = ['id ' => $ id ];
202
+ if (substr ($ id , -4 ) === 'drag ' ) {
203
+ $ options = ArrayHelper::merge ($ options , ['class ' => $ this ->iconMap ['drag-handle ' ]]);
204
+ }
205
+
206
+ $ input = $ column ->renderInput ($ name , $ options , [
207
+ 'id ' => $ id ,
208
+ 'name ' => $ name ,
209
+ 'indexPlaceholder ' => $ this ->getIndexPlaceholder (),
210
+ 'index ' => $ index ,
211
+ 'columnIndex ' => $ columnIndex ,
212
+ 'context ' => $ this ->context ,
197
213
]);
198
214
199
215
if ($ column ->isHiddenInput ()) {
@@ -240,7 +256,7 @@ public function renderCellContent($column, $index)
240
256
}
241
257
242
258
$ options = array_merge_recursive ($ options , $ columnOptions );
243
-
259
+
244
260
$ content = Html::beginTag ('div ' , $ options );
245
261
246
262
if (empty ($ column ->title )) {
0 commit comments