How to add cssClass to dialog confirm

I’m trying to ass a css class to a confirm dialog
i set this in my app init
dialog: {
buttonOk: ‘نعم’,
buttonCancel: ‘لا’,
cssClass: ‘ios’,
bold: true
}
and its not adding the css class.
and there is no place to add a css class in the shortcut
app.dialog.confirm(....)

You cannot add class to alert, confirm,… Use app.dialog.create(parameters)

hmmm.
but why the add class in app init not working on confirm?
is this by design?

there is no cssClass

You can in app init:

on: {
dialogOpened: function (e) {
const $el = e.$el;
$el.addClass(’…’);
}
},

this works with alert / prompt /…

2 Likes

i add it to dialogOpen and tis working great!