bevacqua / rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!
https://bevacqua.github.io/rome
MIT License
2.91k stars 223 forks source link

Global defaults override #108

Closed pekala closed 9 years ago

pekala commented 9 years ago

Is it possible to override default options on the rome object, e.g. when I create multiple datepickers I don't have to specify the same options every time?

bevacqua commented 9 years ago

Not really, you'd have to do that outside of rome

adriansalgadoa commented 9 years ago

You could easily make a wrapper of rome passing the options and using that instead, ex:

var romeWrapper = function(element) {

    rome(element, options = {
        // your options here
    });
}

or make a pr with a default/global options.