Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit ec2635a

Browse files
committed
added new snippets
1 parent 69746a6 commit ec2635a

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.0.5
4+
5+
- added new snippets: `Scroller`, `NumericStepper`, `Spinner`, `SpinnerList` and `DateSpinner`
6+
37
## 0.0.4
48

59
- added new snippets: `HSlider` and `VSlider`

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,13 @@ Open mxml file, start typing component name and select snippet
145145
`HSlider`
146146

147147
`VSlider`
148+
149+
`Scroller`
150+
151+
`NumericStepper`
152+
153+
`Spinner`
154+
155+
`SpinnerList`
156+
157+
`DateSpinner`

snippets/snippets.json

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,5 +716,54 @@
716716
"<s:VSlider id=\"${1:vSlider}\" minimum=\"${2:0}\" maximum=\"${3:100}\" value=\"${4:10}\" />$0"
717717
],
718718
"description": "Creates a vertical Slider"
719-
}
719+
},
720+
"Scroller": {
721+
"prefix": "Scroller",
722+
"body": [
723+
"<s:Scroller id=\"${1:scroller}\" width=\"${2:200}\" height=\"${3:200}\"/>",
724+
"\t$0",
725+
"</s:Scroller>"
726+
],
727+
"description": "Creates a Scroller"
728+
},
729+
"NumericStepper": {
730+
"prefix": "NumericStepper",
731+
"body": [
732+
"<s:NumericStepper id=\"${1:numStepper}\" minimum=\"${2:1}\" maximum=\"${3:20}\" snapInterval=\"${4:1.5}\" stepSize=\"${4:1.5}\" allowValueWrap=\"${5|true,false|\"",
733+
"\t\tvalue=\"${6:1.5}\" change=\"${7:${1}_onChangeHandler}(${8:event})\"/>$0"
734+
],
735+
"description": "Creates a NumericStepper"
736+
},
737+
"Spinner": {
738+
"prefix": "Spinner",
739+
"body": [
740+
"<s:Spinner id=\"${1:spinner}\" minimum=\"${2:2}\" maximum=\"${3:12}\" snapInterval=\"${4:3}\" change=\"${5:${1}_onChangeHandler}(${6:event})\"/>$0"
741+
],
742+
"description": "Creates a Spinner"
743+
},
744+
"SpinnerList": {
745+
"prefix": "SpinnerList (mobile)",
746+
"body": [
747+
"<s:SpinnerListContainer>",
748+
"\t<s:SpinnerList id=\"${1:spinnerList}\" typicalItem=\"${2:999}\" change=\"${3:${1}_onChange}(${4:event})\">",
749+
"\t\t<s:dataProvider>",
750+
"\t\t\t<s:NumericDataProvider maximum=\"${5:80}\" minimum=\"${6:0}\" stepSize=\"${7:5}\"/>",
751+
"\t\t</s:dataProvider>",
752+
"\t</s:SpinnerList>",
753+
"</s:SpinnerListContainer>$0"
754+
],
755+
"description": "Creates a SpinnerList"
756+
},
757+
"DateSpinner": {
758+
"prefix": "DateSpinner (mobile)",
759+
"body": [
760+
"<s:DateSpinner id=\"${1:dateSpinner}\" displayMode=\"${2|date,dateAndTime,time|}\"",
761+
"\t\t\t selectedDate=\"{new Date(${3:2010}, ${4:0}, ${5:20})}\"",
762+
"\t\t\t minDate=\"{new Date(${6:2005}, ${7:0}, ${8:1})}\"",
763+
"\t\t\t maxDate=\"{new Date(${9:2050}, ${10:11}, ${11:31})}\"",
764+
"\t\t\t minuteStepSize=\"${12:5}\"",
765+
"\t\t\t change=\"${13:${1}_onChange}(${event})}\"/>$0"
766+
],
767+
"description": "Creates a DateSpinner"
768+
}
720769
}

0 commit comments

Comments
 (0)