framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
17.98k stars 3.24k forks source link

Add cssClass Dialog Shortcuts Parameters #4196

Closed Simone4e closed 1 year ago

Simone4e commented 1 year ago

Is your feature request related to a problem? Please describe.

It's not really a problem, in terms of code optimization it would be nice to have the "cssClass" property to allow developers to set a class for all dialogs. In my case a class to make the dialog scrollable.

Describe the solution you'd like

Simply add this entry as a default entry

var app = new Framework7({
  dialog: {
    ...
    cssClass: 'class',
    ...
  }
});

Describe alternatives you've considered

At the moment I have to put it in each dialogmanually.

nolimits4web commented 1 year ago

If you want to add it to every dialog, then it is even better to use just .dialog class which all dialogs have