bootstrap-for-ember
bootstrap-for-ember copied to clipboard
Large Modals
trafficstars
Bootstrap supports large modals via modal-lg, there does not seem to be a way I can find to do this using the modal component.
I had to do it in a bit of a hacky way like this:
export default Ember.View.extend({
didInsertElement: function() {
//Add the large class to the modal as the API does not support it
this.$().find('.modal-dialog').addClass('modal-lg');
}
});
Is there a better way of doing this or could this feature be added?
+1
I open my modals programatically and i use the hacky way jackmatt2 suggested. Would be nice to add custom css classes to the modal.