File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ compressionLevel : mixed
Original file line number Diff line number Diff line change 2
2
<Page >
3
3
<ActionBar title =" Material Vue" >
4
4
</ActionBar >
5
- <GridLayout >
6
- <ListView ref =" listView" itemRowHeight =" 80" for =" example in examples" separatorColor =" transparent" @itemTap =" goToExample" >
5
+ <GridLayout rows =" auto,*" >
6
+ <StackLayout >
7
+ <HTMLLabel :text =" nativeText" backgroundColor =' yellow' />
8
+ <HTMLLabel html =' <span style="font-size:16;font-weight:bold">test</span><span style="color:red;font-size:14">hello</span>' backgroundColor =' yellow' />
9
+ <HTMLLabel backgroundColor =' pink' >
10
+ <Span fontSize =" 16" fontWeight =" bold" text =" test" />
11
+ </HTMLLabel >
12
+ <HTMLLabel fontSize =" 16" fontWeight =" bold" text =" test" />
13
+ <Label fontSize =" 16" fontWeight =" bold" text =" test" />
14
+ <Label text =" test" fontWeight =" bold" fontSize =" 16" />
15
+ </StackLayout >
16
+ <ListView ref =" listView" itemRowHeight =" 80" for =" example in examples" separatorColor =" transparent" @itemTap =" goToExample" row =" 1" >
7
17
<v-template >
8
18
<StackLayout class =" item" orientation =" horizontal" >
9
- <Label :text = " example.title " class = " title" verticalAlignment =" center" />
19
+ <HTMLLabel fontSize = " 16 " :text = " example. title" verticalAlignment =" center" />
10
20
</StackLayout >
11
21
</v-template >
12
22
</ListView >
@@ -19,6 +29,9 @@ import Vue from 'vue';
19
29
import BottomSheetInnerVue from ' ./BottomSheetInner.vue' ;
20
30
import { NativeScriptVue } from ' nativescript-vue' ;
21
31
32
+ import { createNativeAttributedString } from ' @nativescript-community/ui-label' ;
33
+
34
+
22
35
export default Vue .extend ({
23
36
name: ' Home' ,
24
37
data() {
Original file line number Diff line number Diff line change 30
30
"tslint" : " npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'" ,
31
31
"run.android.production" : " devns run android --release --clean --key-store-path ./certs/upload.keystore --key-store-password nativescript --key-store-alias nativescript --key-store-alias-password nativescript" ,
32
32
"run.android.timeline" : " devns run android --config=nativescript.config.timeline.js --release --clean --key-store-path ./certs/upload.keystore --key-store-password nativescript --key-store-alias nativescript --key-store-alias-password nativescript --env.timeline"
33
+ },
34
+ "resolutions" : {
35
+ "@nativescript-community/text" : " portal:/home/mguillon/dev/nativescript/text/packages/text"
33
36
}
34
37
}
You can’t perform that action at this time.
0 commit comments