mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
19
apps/ui/app/button/tappable-span-page.xml
Normal file
19
apps/ui/app/button/tappable-span-page.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<Page>
|
||||
<StackLayout style="font-size: 50">
|
||||
<Label automationText="formattedText" id="formattedText" textWrap="true" style="text-transform: capitalize;">
|
||||
<Label.formattedText>
|
||||
<FormattedString>
|
||||
<FormattedString.spans>
|
||||
<Span text="The quick brown " style="font-weight: bold; color: green;" />
|
||||
<Span text="fox" style="font-weight: italic; color: green;" linkTap="foxTap"/>
|
||||
<Span text=" jumps over the lazy " style="font-weight: bold; color: red;" />
|
||||
<Span text="dog" style="font-weight: bold; color: blue;" linkTap="dogTap"/>
|
||||
<Span text="." style="font-weight: bold; color: green;" />
|
||||
</FormattedString.spans>
|
||||
</FormattedString>
|
||||
</Label.formattedText>
|
||||
</Label>
|
||||
<Label id="foxTapped" text="Fox tapped" visibility="hidden" color="green"/>
|
||||
<Label id="dogTapped" text="Dog tapped" visibility="hidden" color="blue"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user