Skip to content

Comments

Added sizes for Matrix#2973

Open
bald-cat wants to merge 2 commits intoorchidsoftware:masterfrom
bald-cat:matrix-col-sizes
Open

Added sizes for Matrix#2973
bald-cat wants to merge 2 commits intoorchidsoftware:masterfrom
bald-cat:matrix-col-sizes

Conversation

@bald-cat
Copy link
Contributor

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,
                  ]),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant