FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Apply visibility via binding fails [Android] · Issue #1692 · NativeScript/NativeScript · GitHub

Apply visibility via binding fails [Android] #1692

Description

I am trying to show/hide a label over a ListView based on the length property of the items-binding. This works just fine on iOS, but not on Android. The Label is never hidden. The 'items' binding is populated in the loaded event of the view/page.

<GridLayout>
    <Label text="List is empty..." visibility="{{ items.length === 0 ? 'visible' : 'collapsed' }}"/>
    <ListView items="{{ items }}">
        <ListView.itemTemplate>
            <StackLayout>
                ...
            </StackLayout>
        </ListView.itemTemplate>
    </ListView>
</GridLayout>

CLI: 1.6.1
Cross-platform modules: 1.6.2
Runtime(s): ios 1.6.0, android 1.6.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL