ページ · Laravilt
Creating Columns
Package reusable column configurations as your own column classes.
The frontend has renderers for text, icon, image, color, toggle, select, text input, and checkbox columns. The simplest way to build your own column is to extend one of these classes and configure it in setUp(). setUp() runs every time make() is called.
php
php
Adding options
Add fluent methods like any other column:
php
Each column serializes a
componentname that the table uses to choose a renderer. Unknown names fall back to the text renderer, and there is no public API yet for registering new cell renderers. Extend one of the built-in column classes as shown above.