Usage
To use the Layout class, you need to include it in the getLayout
method of your grid class. Here is an example:
In the example above, we have used the setHeaderRenderer
method to set the header of the grid. The setHeaderRenderer
method takes a closure as an argument. The closure can return a view, string, or any other valid HTML.
The setFooterRenderer
method works the same way as the setHeaderRenderer
method.
Last updated