platform icon indicating copy to clipboard operation
platform copied to clipboard

Added sizes for Matrix

Open bald-cat opened this issue 11 months ago • 0 comments

Fixes #

Proposed Changes

  • Added method sizes() for settings collumns width in Matrix field? using bootstrap sizes

Example:

                \App\Orchid\Fields\Matrix::make('parts')
                  ->title('Parts')
                  ->columns(['name', 'code', 'program_code', 'notice'])
                  ->fields([
                      'name' => Input::make(),
                      'code' => Input::make(),
                      'program_code' => Input::make(),
                      'notice' => Input::make(),
                  ])
                  ->sizes([
                      'name' => 4,
                      'code' => 1,
                      'program_code' => 1,
                      'notice' => 6,
                  ]),

bald-cat avatar Mar 12 '25 12:03 bald-cat