From 72d83e9ed1dc983be43aa6ad19ff0c07600e5242 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Mon, 22 Jul 2019 13:46:00 +0300 Subject: [PATCH] Documentation for PickList --- src/components/picklist/PickList.vue | 3 +- src/views/orderlist/OrderListDoc.vue | 4 +- src/views/picklist/PickListDoc.vue | 112 ++++++++++++++++++++------- 3 files changed, 88 insertions(+), 31 deletions(-) diff --git a/src/components/picklist/PickList.vue b/src/components/picklist/PickList.vue index 899853fca..eb7ac682e 100644 --- a/src/components/picklist/PickList.vue +++ b/src/components/picklist/PickList.vue @@ -135,7 +135,8 @@ export default { this.$emit('reorder', { originalEvent: event, value: value, - direction: this.reorderDirection + direction: this.reorderDirection, + listIndex: listIndex }); } }, diff --git a/src/views/orderlist/OrderListDoc.vue b/src/views/orderlist/OrderListDoc.vue index 57771fa65..2cdeb26ce 100644 --- a/src/views/orderlist/OrderListDoc.vue +++ b/src/views/orderlist/OrderListDoc.vue @@ -9,7 +9,7 @@ import OrderList from 'primevue/orderlist';

Getting Started

OrderList requires an array as its value bound with the v-model directive and a template for its content.

-

Header of the component is defined with the "header" template and to define the content of an item in the list a named templated called "item" needs to be defined which gets the +

Header of the component is defined with the "header" template and to define the content of an item in the list a named template called "item" needs to be defined which gets the item and the index via slotProps.

@@ -37,7 +37,7 @@ import OrderList from 'primevue/orderlist';