-
Notifications
You must be signed in to change notification settings - Fork 2
Columns
Miroslav Vitanov edited this page Oct 12, 2016
·
1 revision
There are a few Columns that come with the ListView. In most cases you'll need just the text one and format its value. The other types are date, time, datetime and boolean. The date and time columns use Carbon to parse the value and then format it accordingly. You can specify the format of these fields in the config file - administr.listview.php. The boolean just casts the value to bool and returns it.
There are also two special types of columns actions and action.
actions accepts a label and a Closure where you define the action fields. In the end in renders one cell with multiple actions inside.