protected $_columnType = 'text';
protected $_columnMoveAfter = false;
protected $_columnFormat = null;
+
protected $_preview = true;
protected $_filterType = 'simple';
'fillable' => true, 'guarded' => false, 'hidden' => false,
'filter' => false, 'filter_type' => $this->_filterType, 'filter_label' => null, 'filter_values' => $this->_filterValues,
'translatable' => $this->_translatable, 'migrateTranslatable' => $this->_migrateTranslatable,
- 'preview' => $this->_preview, 'column_type' => $this->_columnType, 'column_move_after' => $this->_columnMoveAfter, 'column_format' => $this->_columnFormat,
+ 'preview' => $this->_preview,
+ 'column_type' => $this->_columnType, 'column_move_after' => $this->_columnMoveAfter, 'column_format' => $this->_columnFormat, 'column_width' => 300,
'default' => '', 'cast' => $this->_cast, 'column_view_namespace' => $this->_columnViewNamespace, 'searchLogic' => $this->_searchLogic,
'allow_null' => true,
'can' => $this->_can, 'can_write' => $this->_canWrite, 'auth' => $this->_auth,
'orderable' => true,
];
+ if ($this->hasAttribute('column_function_name')) {
+ $res['function_name'] = $this->getAttribute('column_function_name');
+ }
+
+ if ($this->hasAttribute('column_limit')) {
+ $res['limit'] = $this->getAttribute('column_limit');
+ }
+
return $res;
}
return $value;
}
- public function filterDefault($value){
+ public function filterDefault($value)
+ {
return $value;
}