4.36.133-beta
·
2508 commits
to development
since this release
return AdminDisplay::table()
->setColumns(
...
AdminColumn::link(function($model) {
return $model->subject->title;
}, 'Title')
...
AdminColumn::text(function($model) {
return $model->amount . '$'
}. 'Amount')->setWidth('30px'),
);
- Add new Upload form element
https://github.com/KodiComponents/Support/releases/tag/v0.1.4
// Create And Edit
$model->onCreateAndEdit(function() {
return AdminForm::panel()->addBody([
AdminFormElement::upload('avatar', 'Avatar')->addValidationRule('image'),
AdminColumn::image('avatar')->setWidth('150px'),
]);
});
- Add optional constructor parameters
// Before
AdminFormElement::custom()->setCallback(function(Post $post) {...})
// After
AdminFormElement::custom(function(Post $post) {...})
// Before
AdminColumn::custom()->setCallback(function(Post $post) {...})
// After
AdminColumn::custom('Label', function(Post $post) {...})