الصفحات · Laravilt
TextColumn
Display text with badges, dates, money, numbers, icons, and summaries.
The most common column. It displays the attribute as text and supports extensive formatting.
php
Badges
php
The color closure receives $state and $record.
Dates
php
Money and numbers
php
Copy, limit, and wrap
php
Icons, weight, and HTML
php
Lists and relationship counts
php
Summaries
php
API reference
| Method | Description |
|---|---|
badge() | Render as a badge |
color() | Badge/text color (string or closure) |
date(), dateTime(), since() | Date formatting |
money(), numeric() | Number formatting |
copyable(), copyMessage(), copyMessageDuration() | Copy to clipboard |
limit(), wrap() | Truncate or wrap text |
icon(), iconPosition() | Icon before/after the text |
weight() | Font weight |
html() | Render the value as HTML |
separator(), listWithLineBreaks(), bulleted() | List display |
counts() | Show a relationship count |
summarize() | Add Sum, Average, or Count summaries |
See Columns for options shared by all columns.