Skip to content

feat(): switch component #90

Closed
Closed

Description

@devversion

Hello,
Just wanted to know, if someone is already working on the switch component?
As I recently trying things with Angular 2 I built a few components and would like to help if desired at the material2 component. I know it's still in early stages, but I think it never hurts to ask.

Preview

Activity

  1. jelbourn commented on Feb 24, 2016

    @jelbourn
    Contributor

    We definitely plan on building one, but we're waiting for completion of both the checkbox (#35) since it will share most of the code, and gestures (#72) for having a common way of doing the sliding. Once those pieces are done I'll come back and update this issue.

  2. added
    feature
    on Feb 24, 2016
  3. added this to the before beta milestone on Feb 27, 2016
  4. added
    new component
    on Feb 27, 2016
  5. devversion commented on Apr 21, 2016

    @devversion
    MemberAuthor

    @jelbourn Is this now unblocked? Since HammerJS is now available.

  6. jelbourn commented on Apr 21, 2016

    @jelbourn
    Contributor

    @devversion I suppose it is. Is this something you want to contribute?

    Couple of notes:

    • A lot of the TS code should be shared between this and checkbox.
    • Users should be able to drag the switch part.
  7. jelbourn commented on Apr 21, 2016

    @jelbourn
    Contributor
  8. devversion commented on Apr 21, 2016

    @devversion
    MemberAuthor

    @jelbourn Yes definitely.

    I already implemented it myself a few months ago (#7)

    • But you may have noticed, it used much things from Material 1 and even used an internal gesture service.

    I will start working on this new component the next days (ngMaterial 1.1.0) and will not reuse some old snippets of Material 1.

    I try to extend as much as possible and also work on the drag for the switch part.

  9. jelbourn commented on Apr 21, 2016

    @jelbourn
    Contributor

    @devversion it would be good to break the work into stages. Something like:

    1. Add empty skeleton for slide-toggle
    2. Refactor any checkbox code that would be used by both (could also be borken into smaller PRs)
    3. Add the dragging to the slide-toggle

    (I forgot to mention earlier, we want to change the name to md-slide-toggle since "switch" is already overloaded with the switch control construct, e.g., ng-switch).

  10. devversion commented on Apr 21, 2016

    @devversion
    MemberAuthor

    @jelbourn Yea this sounds good. Am I allowed to ask some questions on Slack, if needed?

  11. jelbourn commented on Apr 21, 2016

    @jelbourn
    Contributor

    @devversion of course!

  12. devversion commented on May 18, 2016

    @devversion
    MemberAuthor

    Closed with #362.

  13. angular-automatic-lock-bot commented on Sep 4, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  14. locked and limited conversation to collaborators on Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew component

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions