Introduction
Text entries display simple text from your data source. They are the most commonly used entry type in infolists.Available Methods
Formatting
Format the entry’s state using a custom closure. The closure receives the state and can return a formatted value.
Format the entry as a date using PHP date formatting tokens.
Format the entry as a date and time.
Format the entry as a time.
Format the entry as a relative time (e.g., “2 hours ago”).
Format the entry as a money value with currency.
Format the entry as a number with optional decimal places.
Render the entry as Markdown.
Render the entry as HTML.
Appearance
Set the text color.
Add an icon to the entry.
Set the icon color separately from the text color.
Set the icon position (before or after the text).
Display the text as a badge with a background color.
Set the text size.
Set the font weight.
Set the font family.
Lists
Display array values with line breaks between items.
Display array values as a bulleted list.
Limit the number of items displayed in a list.
Allow users to expand a limited list to see all items.
Split a single value into multiple list items using a separator.
Text Manipulation
Limit the character length of the text.
Limit the word count of the text.
Limit the text to a specific number of lines.
Control whether text wraps to the next line.
Make the text copyable to clipboard on click.
Add a prefix before the text.
Add a suffix after the text.
Relationship Aggregation
Display the average of a relationship field.
Display the count of related records.
Display the maximum value of a relationship field.
Display the minimum value of a relationship field.
Display the sum of a relationship field.