braincrafted / bootstrap-bundle

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.
http://bootstrap.braincrafted.com
MIT License
399 stars 184 forks source link

Change button size in bootstrap collection #426

Closed fcpauldiaz closed 7 years ago

fcpauldiaz commented 8 years ago

I need to change the button size in the bootstrap collection

Is there a way to add something like:

 'button_class' => 'btn btn-lg'
dkisselev commented 8 years ago

We got around this with 'button_class' => 'warning btn-sm',

It's not perfect but works in the mean time, the button_class field is just appended to the classes as a string concatenated with btn-

fcpauldiaz commented 8 years ago

Where do you add the "button_class? When I use the the option "button_class" I get an error. I'm using the 2.2v @dkisselev

florianeckerstorfer commented 8 years ago

@fcpauldiaz What error do you get?

fcpauldiaz commented 8 years ago

That the button class option doesn't exist. If I add it in the attr it won't throw an error but it doesn't work. @florianeckerstorfer

captura de pantalla 2016-03-18 08 41 44

florianeckerstorfer commented 8 years ago

I just looked it up and there is currently no way to change the class of the button in collection widget. see

You need to overwrite the widget

fcpauldiaz commented 8 years ago

Ok, maybe this issue can be marked as a feature.

nifr commented 8 years ago

So an implementation of add_button_attr and delete_button_attr options + changes to the default widget would be needed?

Would it be better to add add_button_options and remove_button_options maybe even?

fcpauldiaz commented 8 years ago

I think that is better add_button_attrand delete_button_attr @nifr

salemgolemugoo commented 7 years ago

450 look please

florianeckerstorfer commented 7 years ago

Closed by #450