Can I create bootstrap buttons on the fly using the javascript?
for example in jQuery UI, you can do something like this:
JQ("#dialog_component").dialog({
bgiframe: true,
draggable: false,
autoOpen: false,
modal: true,
show: 'fade',
position: 'top',
hide: 'fade',
width: 500,
resizable: false,
buttons: btns, // these would be the translated buttons
});
I want to pass this btns
variable as buttons
in a bootstrap modal
, like I do in jQuery UI. But from the documentation it seems there isn't something like that. Is there any workaround for this?