Git Product home page Git Product logo

ember-power-select-form's People

Contributors

ember-tomster avatar gregjopa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-power-select-form's Issues

Addon Architecture Review

@cibernox - I'd like to get your feedback on this new ember-power-select addon I created. The README contains some details about the purpose of this addon and the architecture details. Checkout the example ember app in the tests/dummy directory to see this addon in action.

I know this addon is an edge case for ember-power-select. But the composition design pattern used with ember-power-select made it pretty easy to create.

The following two things felt hacky to me when overriding the selectOptions component:

  1. Triggering the onchange event - I did this by triggering the select event and passing through the transformed parameters. I wasn't sure how to pass the dropdown param so I just left it blank. https://github.com/gregjopa/ember-power-select-complex/blob/master/tests/dummy/app/components/select-options.js#L62
  2. Closing the dropdown - I did this using the opened api option. I used this.get('targetObject') to get access to the main component from inside the selectOptions component. Is there a better way to refer to the parent component?

Any feedback you have would be greatly appreciated.

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.