File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 11# Nativescript Intro Slides for iOS and Android
22
3+ [ ![ Nativescript Intro Slides. Click to Play] ( https://img.youtube.com/vi/5GGGiNA98TU/0.jpg )] ( https://www.youtube.com/embed/5GGGiNA98TU )
34
45Beta
56###XML
4344.intro-slide-5 {
4445 background-color : darkslategray ;
4546}
47+ Label {
48+ text-align : center ;
49+ width : 100% ;
50+ font-size : 35 ;
51+ margin-top : 35 ;
52+ }
53+
4654```
4755#Usage
48- To use the intro slide plugin you need to first import it into your xml layout with ` xmlns:parallax ="nativescript-intro-slides" `
56+ To use the intro slide plugin you need to first import it into your xml layout with ` xmlns:IntroSlides ="nativescript-intro-slides" `
4957
5058when using the intro slide plugin you need at least two `` <IntroSlides:Slide> `` views inside of the `` <IntroSlides:IntroSlides> `` .
5159
Original file line number Diff line number Diff line change 1616 background-color : darkslategray;
1717}
1818
19+ Label {
20+ text-align : center;
21+ width : 100% ;
22+ font-size : 35 ;
23+ margin-top : 35 ;
24+ }
25+
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ import * as pages from 'ui/page';
55export function pageLoaded ( args : observable . EventData ) {
66 // Get the event sender
77 var page = < pages . Page > args . object ;
8+ page . actionBarHidden = true ;
89}
Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ export class IntroSlides extends AbsoluteLayout implements AddChildFromBuilder {
4444
4545 let btnPrevious = < Button > footer . getViewById ( 'btn-info-previous' ) ;
4646 let btnNext = < Button > footer . getViewById ( 'btn-info-next' ) ;
47- // let page1 = <StackLayout>page.getViewById('Page1');
48- // let page2 = <StackLayout>page.getViewById('Page2');
49- // let page3 = <StackLayout>page.getViewById('Page3');
47+
5048 let slides : StackLayout [ ] = [ ] ;
5149 this . eachLayoutChild ( ( view : View ) => {
5250 if ( view instanceof StackLayout ) {
@@ -60,20 +58,6 @@ export class IntroSlides extends AbsoluteLayout implements AddChildFromBuilder {
6058 } ) ;
6159
6260 let panelMap1 = SlideUtilities . buildSlideMap ( slides ) ;
63- // let panelMap1: ISlideMap = {
64- // panel: page1,
65- // }
66- // let panelMap2: ISlideMap = {
67- // panel: page2,
68- // }
69- // let panelMap3: ISlideMap = {
70- // panel: page3,
71- // }
72-
73- // panelMap1.right = panelMap2;
74- // panelMap2.left = panelMap1;
75- // panelMap2.right = panelMap3;
76- // panelMap3.left = panelMap2;
7761
7862 panelMap1 . panel . width = pageWidth ;
7963 if ( isNaN ( footer . height ) ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " nativescript-intro-slides" ,
3- "version" : " 0.0.4 " ,
3+ "version" : " 0.0.5 " ,
44 "description" : " NativeScript intro slides plugin." ,
55 "main" : " nativescript-intro-slides.js" ,
66 "nativescript" : {
1616 "preparedemo" : " npm run build && cd demo && tns plugin remove nativescript-intro-slides && tns plugin add .. && tns install" ,
1717 "setup" : " cd demo && npm install && cd .. && npm run build && cd demo && tns plugin add .. && cd .." ,
1818 "livesync.ios" :" cd demo && tns livesync ios --watch" ,
19- "livesync.android" :" cd demo && tns livesync ios --watch"
19+ "livesync.android" :" cd demo && tns livesync android --watch"
2020 },
2121 "repository" : {
2222 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments