Skip to content

Commit a1dfba4

Browse files
committed
fix examples
1 parent ae0660e commit a1dfba4

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

app/ns-ui-widgets-category/action-bar/icon-fonts/icon-fonts-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ActionItem icon="font://&#xF359;" class="font-awesome font-size color" ios.position="left" tap="navigateBack"/>
1111

12-
<ActionItem icon="font://&#xF141;" style="font-family:'Font Awesome 5 Free', 'fa-regular-400';" class="font-size color" ios.position="right"/>
12+
<ActionItem icon="font://&#xF2b9;" style="font-family:'Font Awesome 5 Free', 'fa-regular-400';" class="font-size color" ios.position="right"/>
1313
</ActionBar.actionItems>
1414
</ActionBar>
1515
</Page.actionBar>

app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ function containerLoaded(args) {
44
const container = args.object;
55
// >> image-icon-fonts-js
66
const newImage = new Image();
7-
const imageString = String.fromCharCode(0xF10B);
7+
const imageString = String.fromCharCode(0xF2b9);
88
newImage.src = `font://${imageString}`;
99
newImage.className = "font-awesome font-size";
1010
newImage.width = 49;
1111
newImage.height = 49;
1212
// << image-icon-fonts-js
1313
container.addChild(newImage);
14-
GridLayout.setRow(newImage, 3);
14+
GridLayout.setRow(newImage, 1);
1515
GridLayout.setColumn(newImage, 0);
1616
GridLayout.setColumnSpan(newImage, 2);
1717
}

app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-page.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55

66
<ScrollView>
77
<!-- >> image-icon-fonts-xml -->
8-
<GridLayout rows="*, *, *, *" columns="*, *" height="300" loaded="containerLoaded" verticalAlignment="middle">
8+
<GridLayout rows="*, *" columns="*, *" height="300" loaded="containerLoaded" verticalAlignment="middle">
99

1010
<Image row="0" col="0" src="font://&#xF2b9;" class="font-awesome"/>
11-
12-
<Image row="0" col="1" src="font://&#xF557;" class="font-awesome font-size"/>
13-
14-
<Image row="1" col="0" src="font://&#xF433;" style="font-family: 'Font Awesome 5 Free', 'fa-regular-400';" class="font-awesome color"/>
1511

16-
<Image row="1" col="1" src="font://&#xF240;" class="font-awesome font-size color"/>
12+
<Image row="0" col="1" src="font://&#xF359;" style="font-family: 'Font Awesome 5 Free', 'fa-regular-400';" class="font-awesome color"/>
13+
1714
</GridLayout>
1815
<!-- << image-icon-fonts-xml -->
1916
</ScrollView>

app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-ts-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ export function containerLoaded(args: EventData) {
66
const container = <GridLayout>args.object;
77
// >> image-icon-fonts-ts
88
const newImage = new Image();
9-
const imageString = String.fromCharCode(0xF10B);
9+
const imageString = String.fromCharCode(0xF2b9);
1010
newImage.src = "font://" + imageString;
1111
newImage.className = "font-awesome font-size";
1212
newImage.width = 49;
1313
newImage.height = 49;
1414
// << image-icon-fonts-ts
1515
container.addChild(newImage);
16-
GridLayout.setRow(newImage, 3);
16+
GridLayout.setRow(newImage, 1);
1717
GridLayout.setColumn(newImage, 0);
1818
GridLayout.setColumnSpan(newImage, 2);
1919
}

app/ns-ui-widgets-category/image/icon-fonts/icon-fonts-ts-page.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
<ActionBar title="Icon fonts"/>
44
</Page.actionBar>
55
<ScrollView>
6-
<GridLayout rows="*, *, *, *" columns="*, *" height="300" loaded="containerLoaded" verticalAlignment="middle">
6+
<GridLayout rows="*, *" columns="*, *" height="300" loaded="containerLoaded" verticalAlignment="middle">
77

88
<Image row="0" col="0" src="font://&#xF2b9;" class="font-awesome"/>
99

10-
<Image row="0" col="1" src="font://&#xF557;" class="font-awesome font-size"/>
10+
<Image row="0" col="1" src="font://&#xF359;" style="font-family: 'Font Awesome 5 Free', 'fa-regular-400';" class="font-awesome color"/>
1111

12-
<Image row="1" col="0" src="font://&#xF433;" style="font-family: 'Font Awesome 5 Free', 'fa-regular-400';" class="font-awesome color"/>
13-
14-
<Image row="1" col="1" src="font://&#xF240;" class="font-awesome font-size color"/>
1512
</GridLayout>
1613
</ScrollView>
1714
</Page>

0 commit comments

Comments
 (0)