You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
@devversion it would be good to break the work into stages. Something like:
Add empty skeleton for slide-toggle
Refactor any checkbox code that would be used by both (could also be borken into smaller PRs)
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).
Activity
jelbourn commentedon Feb 24, 2016
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.
devversion commentedon Apr 21, 2016
@jelbourn Is this now unblocked? Since HammerJS is now available.
jelbourn commentedon Apr 21, 2016
@devversion I suppose it is. Is this something you want to contribute?
Couple of notes:
jelbourn commentedon Apr 21, 2016
cc @kara
devversion commentedon Apr 21, 2016
@jelbourn Yes definitely.
I already implemented it myself a few months ago (#7)
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.
jelbourn commentedon Apr 21, 2016
@devversion it would be good to break the work into stages. Something like:
(I forgot to mention earlier, we want to change the name to
md-slide-togglesince "switch" is already overloaded with theswitchcontrol construct, e.g.,ng-switch).devversion commentedon Apr 21, 2016
@jelbourn Yea this sounds good. Am I allowed to ask some questions on Slack, if needed?
jelbourn commentedon Apr 21, 2016
@devversion of course!
devversion commentedon May 18, 2016
Closed with #362.
angular-automatic-lock-bot commentedon Sep 4, 2019
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.