Added source code
parent
72d83e9ed1
commit
7ea8960805
|
@ -220,9 +220,12 @@ import PickList from 'primevue/picklist';
|
||||||
</a>
|
</a>
|
||||||
<CodeHighlight>
|
<CodeHighlight>
|
||||||
<template v-pre>
|
<template v-pre>
|
||||||
<OrderList v-model="cars" header="List of Cars" listStyle="height:auto" dataKey="vin">
|
<PickList v-model="cars" dataKey="vin">
|
||||||
<template #header>
|
<template #sourceHeader>
|
||||||
List of Cars
|
Available
|
||||||
|
</template>
|
||||||
|
<template #targetHeader>
|
||||||
|
Selected
|
||||||
</template>
|
</template>
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="p-caritem">
|
<div class="p-caritem">
|
||||||
|
@ -230,7 +233,7 @@ import PickList from 'primevue/picklist';
|
||||||
<div>{{slotProps.item.brand}} - {{slotProps.item.year}} - {{slotProps.item.color}}</div>
|
<div>{{slotProps.item.brand}} - {{slotProps.item.year}} - {{slotProps.item.color}}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</OrderList>
|
</PickList>
|
||||||
</template>
|
</template>
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
||||||
|
@ -248,7 +251,7 @@ export default {
|
||||||
this.carService = new CarService();
|
this.carService = new CarService();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.carService.getCarsSmall().then(data => this.cars = data.slice(0,5));
|
this.carService.getCarsSmall().then(data => this.cars = [data.slice(0,5),[]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
Loading…
Reference in New Issue