PickList not working

UI Components for Vue
Post Reply
maydinbil
Posts: 30
Joined: 15 Jan 2015, 17:51
Location: Bursa,Turkiye

09 Jan 2020, 06:57

<PickList v-model="personelList" dataKey="Id" :selection.sync="katilanlar" listStyle="height:342px" >
<template #sourceHeader>
Personeller
</template>
<template #targetHeader>
Katılanlar
</template>
<template #item="slotProps">
<div >
<div>{{slotProps.item.Ad}}</div>
</div>
</template>
</PickList

personelList=[{Id:1,Ad:'Mehmet AYDIN},{Id:2,Ad:'Ahmet AYDIN'}]
katilanlar:[]

But my pickList empty

cagatay.civici
Prime
Posts: 18183
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jan 2020, 14:22

personelList should be a multidimensionalList;

Code: Select all

personelList=[[{Id:1,Ad:'Mehmet AYDIN},{Id:2,Ad:'Ahmet AYDIN'}],[]]
First array is the source, second is the target.

maydinbil
Posts: 30
Joined: 15 Jan 2015, 17:51
Location: Bursa,Turkiye

16 Jan 2020, 13:19

Thanks . I change my list multidimensionalList it's work.

cagatay.civici
Prime
Posts: 18183
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

20 Jan 2020, 09:13

Glad to hear.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest