Open KrasilnikovKB opened 8 years ago
Why don't you work on your idea, and send a pull request?
i am noob in laravel fasades :(
may you add facade + empty implementation for some static helper-functions ?
name for example : RenderUtils
first need method (generate json-list for select-type column) :
static public function prepareSelectList($data, $first = null){
if(!is_null($first)){
$data->prepend($first, '');
}
$base = array();
foreach($data as $k => $v){
$base[] = $k . ':' . $v;
}
return implode(';', $base);
}
on stage there thinking about adding new functionality facilitates work with daterange filter for columns with dates
some like this:
now we can prepare SELECT from lists :