File tree 4 files changed +33
-8
lines changed
4 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ const Vue = require('nativescript-vue');
2
2
3
3
new Vue ( {
4
4
data : {
5
- elements : [
6
- {
5
+ elements : [ {
7
6
name : 'ActivityIndicator' ,
8
7
component : ( ) => require ( './elements/components/ActivityIndicator' )
9
8
} ,
@@ -99,6 +98,10 @@ new Vue({
99
98
name : 'PromptDialog' ,
100
99
component : ( ) => require ( './elements/dialogs/Prompt' )
101
100
} ,
101
+ {
102
+ name : 'SideDrawer' ,
103
+ component : ( ) => require ( './elements/components/SideDrawer' )
104
+ }
102
105
]
103
106
} ,
104
107
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ template : `
3
+ <RadSideDrawer ref="drawer">
4
+ <StackLayout ~drawerContent>
5
+ <StackLayout height="56" style="text-align: center; vertical-align: center;">
6
+ <label text="Navigation Menu" />
7
+ </StackLayout>
8
+ <StackLayout>
9
+ <button text="Friends" /> <button text="Posts"/>
10
+ </StackLayout>
11
+ </StackLayout>
12
+ <StackLayout ~mainContent>
13
+ <label text="This is the main content for the current Page!" textWrap="true" fontSize="13" padding="10" />
14
+ </StackLayout>
15
+ </RadSideDrawer>
16
+ ` ,
17
+ mounted ( ) {
18
+ this . $refs . drawer . showDrawer ( )
19
+ }
20
+ }
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const components = [
27
27
'ConfirmDialog' ,
28
28
'LoginDialog' ,
29
29
'PromptDialog' ,
30
+ 'SideDrawer' ,
30
31
] ;
31
32
32
33
const makeDir = ( path ) => {
@@ -40,12 +41,12 @@ const makeDir = (path) => {
40
41
makeDir ( `screenshots/${ argv . runType } ` ) ;
41
42
42
43
AppiumDriver . createAppiumDriver ( 4723 , {
43
- isSauceLab : argv . sauceLab || false ,
44
- runType : argv . runType ,
45
- appPath : argv . appPath , //'nativescriptvueuitests-debug.apk',
46
- appiumCaps : require ( './appium.capabilities.json' ) [ argv . runType ] ,
47
- verbose : argv . verbose || false ,
48
- } )
44
+ isSauceLab : argv . sauceLab || false ,
45
+ runType : argv . runType ,
46
+ appPath : argv . appPath , //'nativescriptvueuitests-debug.apk',
47
+ appiumCaps : require ( './appium.capabilities.json' ) [ argv . runType ] ,
48
+ verbose : argv . verbose || false ,
49
+ } )
49
50
. then ( driver => run ( driver ) )
50
51
. then ( ( ) => console . log ( 'Buh-Bye...' ) )
51
52
. catch ( ( err ) => console . log ( err ) ) ;
Original file line number Diff line number Diff line change 15
15
"dependencies" : {
16
16
"appium" : " ^1.7.1" ,
17
17
"nativescript-dev-appium" : " ^3.1.0-2017-10-6-1" ,
18
+ "nativescript-ui-sidedrawer" : " ^5.1.0" ,
18
19
"nativescript-vue" : " ^1.0.0" ,
19
20
"tns-core-modules" : " ~3.4.0" ,
20
21
"yargs" : " ^9.0.1"
You can’t perform that action at this time.
0 commit comments