Skip to content

How to use itemTemplate? #13

Closed
Closed
@skined90

Description

@skined90

I found an example inside the repo how to cutomize itemTemplate but it doesn't work for me.

<PickerField hint="Click here"
              [items]="countries"
              [modalAnimated]="true"
              [pickerTitle]="'Choose country'">

     <ng-template let-item="item" let-i="index">
         <StackLayout class="p-10" orientation="horizontal">
             <Label [text]="i"></Label>
             <Label [text]="item"></Label>
         </StackLayout>
     </ng-template>

 </PickerField>

Nothing changes inside the list.

I'm trying to implement it on Android platform Google Pixel XL real device.

Can someone help me and tell what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions