Toggle column
Read-only PHP for this component, with a live preview.
PHP example
Read-only builder code generated from the Toggle column class and its catalog defaults. Copy it into your own application.
ToggleColumnExample.php
<?php
use Streams\Ui\Builders\Tables\Columns\ToggleColumn;
$toggleColumn = ToggleColumn::make('enabled')
->view('ui::components.table.columns.text-column')
->label('Enabled')
->value('Yes');
Preview
Yes