mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times * Condense the changes when applying properties
18 lines
980 B
XML
18 lines
980 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<Page loaded="pageLoaded">
|
|
<GridLayout rows="auto, *">
|
|
<GridLayout row="0" columns="*,30" id="parentLayout">
|
|
<TextView col="0" automationText="tv" id="textView" hint="Enter example name" text="{{ exampleName }}" />
|
|
<Button col="1" automationText="Run" id="btnRun" text="" tap="{{ loadExampleFromTextField }}" style="font-family:FontAwesome; padding:0; background-color:#33cc33; color:white; border-radius:5; height:30; padding:0;"/>
|
|
</GridLayout>
|
|
<WrapLayout row="1" id="wrapLayoutWithExamples"/>
|
|
<ListView row="1" items="{{ filteredListOfExamples }}" itemTap="{{ loadExampleFromListView }}" id="filteredListOfExamplesListView">
|
|
<ListView.itemTemplate>
|
|
<GridLayout columns="*,2*">
|
|
<Label text="{{ name }}" textWrap="true" />
|
|
<Label text="{{ path }}" textWrap="true" col="1"/>
|
|
</GridLayout>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</GridLayout>
|
|
</Page> |