Layout
abstract class Layout (View source)
Base class for a Layout.
Methods
string
label()
The text label for the layout.
string|null
icon()
The icon representing the layout.
string|null
wrapperClass()
Class to apply to the wrapper element.
string
itemComponent()
The name of the component used to display a post in the layout.
void
scope(Builder $query)
Apply a scope to the post feed query when this layout is active.
string|null
configField()
Name of the Waterhole\Forms\Field class for configuration of the layout.
Details
abstract string
label()
The text label for the layout.
string|null
icon()
The icon representing the layout.
string|null
wrapperClass()
Class to apply to the wrapper element.
abstract string
itemComponent()
The name of the component used to display a post in the layout.
void
scope(Builder $query)
Apply a scope to the post feed query when this layout is active.
string|null
configField()
Name of the Waterhole\Forms\Field class for configuration of the layout.