mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
30 lines
483 B
PHP
30 lines
483 B
PHP
<?php
|
|
|
|
namespace Filament\Fields;
|
|
|
|
use Filament\Traits\FieldConcerns;
|
|
|
|
class Fieldset extends Field
|
|
{
|
|
use FieldConcerns\CanHaveLabel;
|
|
|
|
public $columns = 1;
|
|
|
|
public static function make($label = null)
|
|
{
|
|
return (new static())->label($label);
|
|
}
|
|
|
|
public function columns($columns)
|
|
{
|
|
$this->columns = $columns;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getForm()
|
|
{
|
|
return parent::getForm()->columns($this->columns);
|
|
}
|
|
}
|