mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* test: list items relayout example * fix(list-view): Layout list-view items on request * refactor(tests): refactor list-view tests imports
15 lines
646 B
XML
15 lines
646 B
XML
<Page loaded="loaded">
|
|
<StackLayout>
|
|
<ListView items="{{ items }}">
|
|
<ListView.itemTemplate>
|
|
<StackLayout orientation="horizontal" tap="toggle">
|
|
<Label text="{{ text }}" />
|
|
<Label text="marked" visibility="{{ selected ? 'visible' : 'collapse' }}" />
|
|
<Label text="{{ selected ? 'yep' : 'nope' }}" />
|
|
<Label text="test" class="{{ selected ? 'selected' : 'unselected' }}" />
|
|
<Label text="{{ selected ? 'yep' : 'nope' }}" class="{{ selected ? 'selected' : 'unselected' }}" />
|
|
</StackLayout>
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
</Page> |