1.6.0
Our 1.6 release signifies a switch from a stale Semantic UI CSS framework to a community-supported Fomantic UI fork, version 2.6.2. Calendar widget is now supported natively, various other issues are addressed but, more importantly, Fomantic UI is open for collaboration. We are working with their core maintainers hammy2899, prudho and ColinFrick to implement new modern UI features.
Also now have ability to resize any table, Grid or CRUD:
// Enable reizable columns on the table
$table->resizableColumn();
// Also supports custom callaback (on-resize) and ability to pre-set the width:
$table->resizableColumn(function($j, $w){
$columnWidths = json_decode($w);
// store widths somewhere
return;
}, [200,300,100,100,100]); // default widths
[$table->resizableColumns();](https://agile-ui.readthedocs.io/en/latest/table.html?highlight=table#resizable-columns)
// For Grid or CRUD:
$crud->table->resizableColumn
We also introducing a somewhat experemental "Lookup" field. It is identical to AutoComplete and can work as a stand-in
replacement, but supports "filters". For now we are looking for ways to make this field more compact before it becomes
part of AutoComplete.
$form = $app->add(new \atk4\ui\Form(['segment']));
$form->add(['Label', 'Add city', 'top attached'], 'AboveFields');
$l = $form->addField('city',['Lookup']);
// will restraint possible city value in droddown base on country and/or language.
$l->addFilter('country', 'Country');
$l->addFilter('language', 'Lang');
//make sure country and language belong to your model.
$l->setModel(new City($db));
Closed issues:
- Menu->addItem is not using App->url method #565
- $grid->jsReload() does not show loading indicator #561
- In CRUD form->error() is not treated correctly #558
- DropDown with icons don't look nice #514
- jsNotify->setDuration(0) message is not sown forever #478
- Paginator should have ability to choose items per page #441
Merged pull requests:
- Set view as not rendered if there is exception #569 (@DarkSide666)
- fix/ grid table overflow #568 (@ibelar)
- Upgrading to Fomantic-UI #567 (@romaninsh)
- fix #565, Menu->addItem URL treatment #566 (@DarkSide666)
- feature/leftMenu option #564 (@ibelar)
- Feature/js search auto query #563 (@ibelar)
- $grid->jsReload not showing reload indicator #562 (@skondakov)
- Feature/form submit hook in crud #560 (@DarkSide666)
- Feature/Table Column Resizable #559 (@ibelar)
- Fix LoremIpsum constructor (seed mechanism) #556 (@DarkSide666)
- Feature/fix on change radio #555 (@DarkSide666)
- add scrollbar if needed in modal #553 (@DarkSide666)
- typo fix #552 (@DarkSide666)
- Feature/support for serialized fields #548 (@romaninsh)
- Implements FormField->onChange method #547 (@DarkSide666)
- console->set() captures executon info/output. #546 (@romaninsh)