diff --git a/api-generator/components/picklist.js b/api-generator/components/picklist.js index dc72c9cfe..9b22f78dd 100644 --- a/api-generator/components/picklist.js +++ b/api-generator/components/picklist.js @@ -46,6 +46,18 @@ const PickListProps = [ type: "boolean", default: "false", description: "Whether to displays rows with alternating colors." + }, + { + name: "showSourceControls", + type: "boolean", + default: "true", + description: "Whether to show buttons of source list." + }, + { + name: "showTargetControls", + type: "boolean", + default: "true", + description: "Whether to show buttons of target list." } ]; diff --git a/src/components/picklist/PickList.d.ts b/src/components/picklist/PickList.d.ts index ffeb5261d..9abf67f16 100755 --- a/src/components/picklist/PickList.d.ts +++ b/src/components/picklist/PickList.d.ts @@ -95,6 +95,14 @@ export interface PickListProps { * Whether to displays rows with alternating colors. */ stripedRows?: boolean | undefined; + /** + * Whether to show buttons of source list. + */ + showSourceControls?: boolean | undefined; + /** + * Whether to show buttons of target list. + */ + showTargetControls?: boolean | undefined; } export interface PickListSlots { diff --git a/src/components/picklist/PickList.vue b/src/components/picklist/PickList.vue index 8f473d60b..206493873 100755 --- a/src/components/picklist/PickList.vue +++ b/src/components/picklist/PickList.vue @@ -1,6 +1,6 @@ -
+
@@ -95,6 +95,14 @@ export default { stripedRows: { type: Boolean, default: false + }, + showSourceControls: { + type: Boolean, + default: true + }, + showTargetControls: { + type: Boolean, + default: true } }, itemTouched: false, diff --git a/src/views/picklist/PickListDoc.vue b/src/views/picklist/PickListDoc.vue index bc177b404..9a6c562e5 100755 --- a/src/views/picklist/PickListDoc.vue +++ b/src/views/picklist/PickListDoc.vue @@ -142,6 +142,18 @@ import PickList from 'primevue/picklist'; boolean false Whether to displays rows with alternating colors. + + + showSourceControls + boolean + true + Whether to show buttons of source list. + + + showTargetControls + boolean + true + Whether to show buttons of target list.