Skip to content

Commit 744de96

Browse files
author
Vladimir Enchev
committed
Class atribute registered and used instead cssClass
1 parent 601dffc commit 744de96

File tree

19 files changed

+63
-58
lines changed

19 files changed

+63
-58
lines changed

apps/action-bar-demo/main-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Page>
33
<Page.actionBar>
4-
<ActionBar title="Title" cssClass="custom-action-bar">
4+
<ActionBar title="Title" class="custom-action-bar">
55
<ActionBar.actionItems>
66
<ActionItem text="hi" />
77
</ActionBar.actionItems>

apps/cuteness.io/details-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ScrollView>
44
<StackLayout>
55
<Image imageSource="{{ imageSource }}" stretch="aspectFill"/>
6-
<Label text="{{ title }}" cssClass="detailsTitle" textWrap="true" />
6+
<Label text="{{ title }}" class="detailsTitle" textWrap="true" />
77
</StackLayout>
88
</ScrollView>
99
<StackLayout orientation="horizontal" row="1">

apps/cuteness.io/main-page.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<ListView.itemTemplate>
88
<!-- Binding in template property of an component will use the bindingContext provided by the component. -->
99
<GridLayout columns="auto, *, auto" rows="auto, 25">
10-
<Image src="{{ thumbnailImage }}" cssClass="thumbnail" rowSpan="2"/>
11-
<Label text="{{ title || 'Downloading...' }}" textWrap="true" cssClass="title" col="1" colSpan="2" minHeight="50" />
12-
<Label text="{{ author ? 'by ' + author : '' }}" cssClass="author" col="1" row="1" />
13-
<Label text="{{ num_comments ? num_comments + ' comments' : '' }}" cssClass="comments" col="2" row="1" />
10+
<Image src="{{ thumbnailImage }}" class="thumbnail" rowSpan="2"/>
11+
<Label text="{{ title || 'Downloading...' }}" textWrap="true" class="title" col="1" colSpan="2" minHeight="50" />
12+
<Label text="{{ author ? 'by ' + author : '' }}" class="author" col="1" row="1" />
13+
<Label text="{{ num_comments ? num_comments + ' comments' : '' }}" class="comments" col="2" row="1" />
1414
</GridLayout>
1515
<!-- End of tempplate. -->
1616
</ListView.itemTemplate>

apps/cuteness.unoptimized/details-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ScrollView>
44
<StackLayout>
55
<Image imageSource="{{ imageSource }}" stretch="aspectFill"/>
6-
<Label text="{{ title }}" cssClass="detailsTitle" textWrap="true" />
6+
<Label text="{{ title }}" class="detailsTitle" textWrap="true" />
77
</StackLayout>
88
</ScrollView>
99
<StackLayout orientation="horizontal" row="1">

apps/cuteness.unoptimized/main-page.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<ListView.itemTemplate>
88
<!-- Binding in template property of an component will use the bindingContext provided by the component. -->
99
<GridLayout columns="auto, *, auto" rows="auto, 25">
10-
<Image src="{{ thumbnailImage }}" cssClass="thumbnail" rowSpan="2"/>
11-
<Label text="{{ title || 'Downloading...' }}" textWrap="true" cssClass="title" col="1" colSpan="2" minHeight="50" />
12-
<Label text="{{ author ? 'by ' + author : '' }}" cssClass="author" col="1" row="1" />
13-
<Label text="{{ num_comments ? num_comments + ' comments' : '' }}" cssClass="comments" col="2" row="1" />
10+
<Image src="{{ thumbnailImage }}" class="thumbnail" rowSpan="2"/>
11+
<Label text="{{ title || 'Downloading...' }}" textWrap="true" class="title" col="1" colSpan="2" minHeight="50" />
12+
<Label text="{{ author ? 'by ' + author : '' }}" class="author" col="1" row="1" />
13+
<Label text="{{ num_comments ? num_comments + ' comments' : '' }}" class="comments" col="2" row="1" />
1414
</GridLayout>
1515
<!-- End of tempplate. -->
1616
</ListView.itemTemplate>

apps/gallery-app/main-page.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Page>
33
<ScrollView>
44
<StackLayout>
5-
<Label cssClass="title" text="Layouts" />
5+
<Label class="title" text="Layouts" />
66
<StackLayout>
77
<Button tag="layouts/stack-layout" text="StackLayout" tap="itemTap" />
88
<Button tag="layouts/grid-layout" text="GridLayout" tap="itemTap" />
@@ -11,7 +11,7 @@
1111
<Button tag="layouts/absolute-layout" text="AbsoluteLayout" tap="itemTap" />
1212
</StackLayout>
1313

14-
<Label cssClass="title" text="Content" />
14+
<Label class="title" text="Content" />
1515
<StackLayout>
1616
<Button tag="content/tab-view" text="TabView" tap="itemTap" />
1717
<Button tag="content/web-view" text="WebView" tap="itemTap" />
@@ -20,7 +20,7 @@
2020
<Button tag="content/border" text="Border" tap="itemTap" />
2121
</StackLayout>
2222

23-
<Label cssClass="title" text="Views" />
23+
<Label class="title" text="Views" />
2424
<StackLayout>
2525
<Button tag="views/button" text="Button" tap="itemTap" />
2626
<Button tag="views/label" text="Label" tap="itemTap" />

apps/paylocity/login.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<StackLayout>
33
<StackLayout verticalAlignment="center" horizontalAlignment="center" margin="50">
44
<Image loaded="imageLoaded" />
5-
<TextField cssClass="nameField" text="Captain" margin="10" />
6-
<TextField cssClass="familyNameField" text="America" margin="10" />
7-
<TextField cssClass="passwordField" secure="true" hint="Password (leave empty)" margin="10" />
8-
<Button cssClass="loginButton" text="Login" margin="10" tap="loginButtonTap" />
5+
<TextField class="nameField" text="Captain" margin="10" />
6+
<TextField class="familyNameField" text="America" margin="10" />
7+
<TextField class="passwordField" secure="true" hint="Password (leave empty)" margin="10" />
8+
<Button class="loginButton" text="Login" margin="10" tap="loginButtonTap" />
99
</StackLayout>
1010
</StackLayout>
1111
</Page>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
22
<StackLayout>
3-
<Label text="Tap the button" cssClass="title"/>
3+
<Label text="Tap the button" class="title"/>
44
<Button text="TAP" tap="{{ tapAction }}" />
5-
<Label text="{{ message }}" cssClass="message" textWrap="true"/>
5+
<Label text="{{ message }}" class="message" textWrap="true"/>
66
</StackLayout>
77
</Page>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<StackLayout xmlns="http://www.nativescript.org/tns.xsd">
2-
<Label text="{{ title }}" cssClass="detail-title"/>
3-
<Label text="{{ info }}" cssClass="info" textWrap="true"/>
2+
<Label text="{{ title }}" class="detail-title"/>
3+
<Label text="{{ info }}" class="info" textWrap="true"/>
44
</StackLayout>

apps/template-master-detail/main-page.minWH600.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
xmlns:app="."
33
loaded="pageLoaded">
44
<GridLayout rows="auto, *" columns="300, *">
5-
<Label text="Master Details Page" cssClass="title" colSpan="2" />
5+
<Label text="Master Details Page" class="title" colSpan="2" />
66

77
<ListView items="{{ items }}" itemTap="listViewItemTap" row="1">
88
<ListView.itemTemplate>
9-
<Label text="{{ title }}" cssClass="listItem" />
9+
<Label text="{{ title }}" class="listItem" />
1010
</ListView.itemTemplate>
1111
</ListView>
1212

0 commit comments

Comments
 (0)