@@ -181,6 +181,9 @@ |
||
| 181 | 181 | return $first . mb_substr($string, 1, null, $encoding); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @return string |
|
| 186 | + */ |
|
| 184 | 187 | public function getUniqueId() { |
| 185 | 188 | if ($this->uniqueId) { |
| 186 | 189 | return $this->uniqueId; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function init() |
| 32 | 32 | { |
| 33 | 33 | $this->toolbar = $this->getToolbarConfig(); |
| 34 | - $this->rowOptions = function ($row) { |
|
| 34 | + $this->rowOptions = function($row) { |
|
| 35 | 35 | return [ |
| 36 | 36 | 'data-id' => $row->primaryKey, |
| 37 | 37 | 'attributes' => Json::encode($row->attributes), |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'class' => GridView::class, |
| 43 | 43 | 'responsive' => false, |
| 44 | 44 | 'responsiveWrap' => false, |
| 45 | - 'rowOptions' => function ($row) { |
|
| 45 | + 'rowOptions' => function($row) { |
|
| 46 | 46 | if (method_exists($row, 'getRowOptions')) { |
| 47 | 47 | return $row->getRowOptions(); |
| 48 | 48 | } |