Fields
Insert a divider
If you want to add a divider between the fields:
Modify the display
Modify the display content as follows
Here are a few common display style methods implemented by the as
method:
image
The content of the field avatar
is the path or url of the image, which can be displayed as an image:
The parameters of the image()
method are referenced to Field::image()
file
The content of the field document
is the path or url of the file, which can be displayed as an file:
The parameters of the file()
method are referenced to Field::file()
link
The content of the field homepage
is a url link that can be displayed as an HTML link:
The parameters of the link()
method are referenced to Field::link()
label
Show the contents of the field tag
as label:
The parameters of the label()
method are referenced to Field::label()
badge
Show the contents of the field rate
as badge:
The parameters of the badge()
method are referenced to Field::badge()
using
If the value of the field gender
is f
, m
, it needs to be displayed with Female
and Male
respectively.
Last updated