View column
Read-only PHP for this component, with a live preview.
PHP example
Read-only builder code generated from the View column class and its catalog defaults. Copy it into your own application.
ViewColumnExample.php
<?php
use Streams\Ui\Builders\Tables\Columns\ViewColumn;
$viewColumn = ViewColumn::make('summary')
->view('ui::components.table.columns.text-column')
->label('Summary')
->value('Catalog default');
Preview
Catalog default