Last active
August 29, 2015 14:06
-
-
Save leoaretakis/98e7ed2ef31d29acb12d to your computer and use it in GitHub Desktop.
slider button usecase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function _createStopSurface(){ | |
| this.stopSlider = new SlideButtonView({ | |
| size: [250, 40], | |
| sliderContent: 'slide to unlock', | |
| sliderProperties: { | |
| backgroundColor: 'red' | |
| } | |
| }); | |
| this.stopSliderModifier = new StateModifier({ | |
| size: [250, 40], | |
| origin: [0.5, 1], | |
| align: [0.5, 1] | |
| }); | |
| this.add(this.stopSliderModifier).add(this.stopSlider); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment