Giter Club home page Giter Club logo

Comments (6)

miguelcobain avatar miguelcobain commented on August 19, 2024

Yes. For now you can reopen the ember-selectize component and override the plugins array.

Question: to keep selectize configuration in a single place, could it be possible/desirable to set the environment from the Brocfile?

from ember-cli-selectize.

knownasilya avatar knownasilya commented on August 19, 2024

Not sure if it's possible, but it's possible to get the user's config (config/environment.js) in the addon's index.js. See here.

from ember-cli-selectize.

miguelcobain avatar miguelcobain commented on August 19, 2024

So, what do you think of centralizing all the configuration in config/environment.js?
Ember-cli configuration is confusing right now.

Quoting a tweet from @EmberSherpa:

TIL: EmberCLI has 3 levels of config

App: config/environment.js
Asset Compilation: Brocfile.js
CLI: Task parameters

Thanks @abuiles

So, I guess this is a matter of whether this is an app or asset compilation configuration.

Possible selectize configurations (at least for now):

  • Theme
  • Plugins

Changing theme does change the assets that are included, but not the app or the code itself (just css files) -> Brocfile
Changing plugins does not affect the assets that are included (because all the selectize plugins are included in the same js file), but we need to enable them in the component code -> environment

We reach a conclusion that doesn't make me happy. Perhaps we should just use environment.js, considering the theme an app config, but just one that doesn't have any impact on code.

from ember-cli-selectize.

miguelcobain avatar miguelcobain commented on August 19, 2024

@knownasilya, I also don't know how this component would behave with plugins like "drag_drop" or "optgroup_columns", but nevertheless this configuration option should exist.

from ember-cli-selectize.

mar3les avatar mar3les commented on August 19, 2024

Please see this PR
#15 c66898d

from ember-cli-selectize.

miguelcobain avatar miguelcobain commented on August 19, 2024

Closed in PR #15

from ember-cli-selectize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.