laravel-livewire-forms icon indicating copy to clipboard operation
laravel-livewire-forms copied to clipboard

Add bootstrap grid support and additional new attributes.

Open b4oshany opened this issue 4 years ago • 3 comments
trafficstars

b4oshany avatar Sep 25 '21 21:09 b4oshany

This is interesting, I'm actually working on a newer version of this package.

What do you think about a field called Row?

example:

Row::make([
  Input::make('First Name')->colLg(6),
  Input::make('Last Name')->colLg(6),
]);

bastinald avatar Sep 26 '21 00:09 bastinald

What do you think about a field called Row?

Makes sense. I'm assuming, there will be a Col::make as well to provide further nesting or you don't want to get too complex.

b4oshany avatar Oct 08 '21 13:10 b4oshany

@bastinald, I updated the code:

Bootstrap Grid

Add bootstrap support to the form.

Row ($label = null) and RowColumn ($label = null)

An array of fields display in a Bootstrap Row or Column

Row::make()->fields([
    Input::make('city')->placeholder('City'),
    Select::make('state')->placeholder('State')->options(['FL', 'TX']),
]),

b4oshany avatar Oct 26 '21 13:10 b4oshany