alphadevx / alpha

Full-stack MVC framework for PHP.
http://www.alphaframework.org/
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

The Button class should allow changing the Bootstrap CSS class #342

Closed alphadevx closed 5 years ago

alphadevx commented 5 years ago

In the render() method of that class, at the moment the CSS class is hard-coded to either this:

class="btn btn-default btn-xs"

Or this:

class="btn btn-primary"

While these are fine for defaults, the user should be able to override these either via a paramater to the constructor or the render method.