bootstrap-for-ember icon indicating copy to clipboard operation
bootstrap-for-ember copied to clipboard

Large Modals

Open jackmatt2 opened this issue 11 years ago • 1 comments
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?

jackmatt2 avatar Aug 13 '14 07:08 jackmatt2

+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.

BenjaminHorn avatar Aug 23 '14 18:08 BenjaminHorn