lilHermit / cakephp-plugins-bootstrap4

3 stars 5 forks source link

buttonwidget? #19

Open tgoeminne opened 4 years ago

tgoeminne commented 4 years ago

Hi,

has this plugin something like buttonwidget or can we use bootstrap-ui along with this plugin?

https://github.com/FriendsOfCake/bootstrap-ui/blob/master/src/View/Helper/OptionsAwareTrait.php

Something along these lines, because I am using buttons but the classes don't change as expected

tgoeminne commented 4 years ago

oh right i got it need to set class like this 'btn-success'

lilHermit commented 4 years ago

@tgoeminne Sorry just seen this. Yes it does you can use the HtmlHelper and do $this->Html->button('label',null, ['size'=>'large']);

Check here for the function and some docs

It appears that it's not documented, I must have missed that. If anyone fancies doing a PR to update the documentation that would be a great help. HtmlHelper doc