Merge pull request #2739 from tugcekucukoglu/picklist
Fixed #2697 - PickList: Disable show source and target buttonspull/2740/head
commit
819da95142
|
@ -46,6 +46,18 @@ const PickListProps = [
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
default: "false",
|
default: "false",
|
||||||
description: "Whether to displays rows with alternating colors."
|
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."
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,14 @@ export interface PickListProps {
|
||||||
* Whether to displays rows with alternating colors.
|
* Whether to displays rows with alternating colors.
|
||||||
*/
|
*/
|
||||||
stripedRows?: boolean | undefined;
|
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 {
|
export interface PickListSlots {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="containerClass">
|
<div :class="containerClass">
|
||||||
<div class="p-picklist-buttons p-picklist-source-controls">
|
<div class="p-picklist-buttons p-picklist-source-controls" v-if="showSourceControls">
|
||||||
<slot name="sourcecontrolsstart"></slot>
|
<slot name="sourcecontrolsstart"></slot>
|
||||||
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 0)"></PLButton>
|
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 0)"></PLButton>
|
||||||
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 0)"></PLButton>
|
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 0)"></PLButton>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
</template>
|
</template>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-picklist-buttons p-picklist-target-controls">
|
<div class="p-picklist-buttons p-picklist-target-controls" v-if="showTargetControls">
|
||||||
<slot name="targetcontrolsstart"></slot>
|
<slot name="targetcontrolsstart"></slot>
|
||||||
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 1)"></PLButton>
|
<PLButton type="button" icon="pi pi-angle-up" @click="moveUp($event, 1)"></PLButton>
|
||||||
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 1)"></PLButton>
|
<PLButton type="button" icon="pi pi-angle-double-up" @click="moveTop($event, 1)"></PLButton>
|
||||||
|
@ -95,6 +95,14 @@ export default {
|
||||||
stripedRows: {
|
stripedRows: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
showSourceControls: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
showTargetControls: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
itemTouched: false,
|
itemTouched: false,
|
||||||
|
|
|
@ -142,6 +142,18 @@ import PickList from 'primevue/picklist';
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
<td>Whether to displays rows with alternating colors.</td>
|
<td>Whether to displays rows with alternating colors.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>showSourceControls</td>
|
||||||
|
<td>boolean</td>
|
||||||
|
<td>true</td>
|
||||||
|
<td>Whether to show buttons of source list.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>showTargetControls</td>
|
||||||
|
<td>boolean</td>
|
||||||
|
<td>true</td>
|
||||||
|
<td>Whether to show buttons of target list.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue