iziModal icon indicating copy to clipboard operation
iziModal copied to clipboard

Can i addClass to my iziModal on open?

Open chillside opened this issue 7 years ago • 1 comments

$('#modal').iziModal('open', {
    class: 'my-class'  // add class to modal div
});

or can i setTheme like setTitle ?

$('#modal').iziModal('open', {
    theme: 'light',
});

not workin for me..

chillside avatar Oct 31 '17 17:10 chillside

i use this

setTheme: function(drawclass){

        var that = this,
        theme = this.options.theme || drawclass;

	if( drawclass !== undefined && drawclass !== this.options.theme){
		this.$element.removeClass(this.options.theme);
                theme = drawclass;
                this.options.theme = theme;
		this.$element.addClass(theme);
	}

        if(this.state == STATES.CLOSED){
		this.open();
	}
},

and init

$('#modal').iziModal('setTheme', 'my-class');

chillside avatar Nov 01 '17 08:11 chillside