new feature to allow CSS style on buttons#71
new feature to allow CSS style on buttons#71quocvu wants to merge 3 commits intoNicolasCARPi:masterfrom
Conversation
…orm for easier reference in the css
|
I think you can already style buttons with CSS selector like |
|
Hi Mika, There are 2 use cases for what I did.
Thanks From: Mika Tuupola notifications@github.com I think you can already style buttons with CSS selector like form.editable > button. Is adding two new parameters to Jeditable really needed? |
|
Hi I am going to comment on this issue because it is exactly the same issue (and only one of two issues) that I'm having with jquery_jeditable. Of course, I could style the buttons directly. But that's a chunk of css that's cut and pasted from bootstrap into my theme's customised css (so when I want to change my theme I have to edit it in two places now). Surely it's just easier to be able to assign the class I want to the button? |
add the submitcssclass, cancelcssclass and formid options
|
Hello, This code has been merged and a demo example has been added to the demo page. Thanks for your contribution! :D Cheers, |
Hi Mika,
I added a few options to allow me to further style the form produced my jeditable.
In my case I use bootstrap css and we usually do things like <button class="btn btn-success" ...> thus I added the following for convenience
Hope you find it useful for other and merge it to your code