mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Text transform and decoration updated on binding context changed
This commit is contained in:
7
apps/ui-tests-app/css/listview.ts
Normal file
7
apps/ui-tests-app/css/listview.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export function loaded(args) {
|
||||
var items = [];
|
||||
for (var i = 0; i < 100; i++) {
|
||||
items.push("name" + i);
|
||||
}
|
||||
args.object.bindingContext = { items: items };
|
||||
}
|
7
apps/ui-tests-app/css/listview.xml
Normal file
7
apps/ui-tests-app/css/listview.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<Page loaded="loaded">
|
||||
<ListView items="{{ items }}">
|
||||
<ListView.itemTemplate>
|
||||
<Label text="{{ $value }}" style="text-transform: uppercase; text-decoration: underline;" />
|
||||
</ListView.itemTemplate>
|
||||
</ListView>
|
||||
</Page>
|
@ -53,6 +53,9 @@ export class TextBase extends view.View implements definition.TextBase, formatte
|
||||
if (this.formattedText) {
|
||||
this.formattedText.updateSpansBindingContext(newValue);
|
||||
}
|
||||
|
||||
this.style._updateTextTransform();
|
||||
this.style._updateTextDecoration();
|
||||
}
|
||||
|
||||
get text(): string {
|
||||
|
Reference in New Issue
Block a user