Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Best place to set default options for a jQuery plugin?

$
0
0

@Myrdhin wrote:

Hello,

I use a jQuery plugin (select2) in some components. We can define default options in $.fn.select2.defaults (like $.fn.select2.defaults.set("theme", "bootstrap");).

What is the best place with Ember to define these default options?

What do you think about define them in an initializer? If so, which initializer : Initializer orInstance-initializer?

Thanks,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles