ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
704 stars 103 forks source link

Large Modals #165

Open jackmatt2 opened 10 years ago

jackmatt2 commented 10 years ago

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?

BenjaminHorn commented 10 years ago

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