Skip to content

Commit c46ee6c

Browse files
committed
Readme updates
1 parent 8cda8ed commit c46ee6c

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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

45
Beta
56
###XML
@@ -43,9 +44,16 @@ Beta
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

5058
when using the intro slide plugin you need at least two ``<IntroSlides:Slide>`` views inside of the ``<IntroSlides:IntroSlides>``.
5159

demo/app/app.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@
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+

demo/app/main-page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ import * as pages from 'ui/page';
55
export function pageLoaded(args: observable.EventData) {
66
// Get the event sender
77
var page = <pages.Page>args.object;
8+
page.actionBarHidden = true;
89
}

nativescript-intro-slides.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff 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)) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -16,7 +16,7 @@
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",

0 commit comments

Comments
 (0)