-
-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Description
this is my template
<StackLayout orientation="vertical">
<Label style="text-transform: uppercase; text-decoration: underline line-through;letter-spacing: 10;">
<Label.formattedText>
<FormattedString>
<FormattedString.spans>
<Span text="label" fontAttributes="Bold" foregroundColor="#0000ff"></Span>
<Span text="Label" fontAttributes="Italic" foregroundColor="#00ff00"></Span>
</FormattedString.spans>
</FormattedString>
</Label.formattedText>
</Label>
<Button text="buttonButton" style="text-transform: uppercase;foregroundColor:#00ff00;fontAttributes:Italic">
</Button>
</StackLayout>
actually, just display the button, no label here.
my question is:
- how to use FormattedString with angular2. (xml & ts)
- it seems the style fontAttributes/foregroundColor not working for the button here
- the definition of FormattedString
public fontAttributes: number;
it's type of number. but I found all the material about it just accept sth like Italic/Bold. it's not a number
Metadata
Metadata
Assignees
Labels
No labels