Open jperkelens opened 10 years ago
You can currently make use of FontAwesome icons by setting $.fn.editableform.buttons property. This works for me:
$.fn.editableform.buttons =
'<button type="submit" class="btn btn-primary btn-sm editable-submit">'+
'<i class="fa fa-fw fa-check"></i>'+
'</button>'+
'<button type="button" class="btn btn-default btn-sm editable-cancel">'+
'<i class="fa fa-fw fa-times"></i>'+
'</button>';
I replaced the icon- with fa fa- in the .js file. Note that icon-ok becomes fa fa-icon-check, and icon-remove becomes fa fa-times.
@ajfranzoia tip worked great ;)
+1
Thanks!
@ajfranzoia it worked for me, thank you.
Have you considered adding classes to your editableform buttons to support Font Awesome v4? Adding the classes to the s would be a really minor change. I'm happy ro submit a pull request for it.