mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5437 - For scrollHeight
This commit is contained in:
parent
cb6c2fffef
commit
0b5ac272ef
17 changed files with 41 additions and 11 deletions
|
@ -46,6 +46,10 @@ export default {
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
scrollHeight: {
|
||||
type: String,
|
||||
default: '14rem'
|
||||
},
|
||||
showSourceControls: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
|
5
components/lib/picklist/PickList.d.ts
vendored
5
components/lib/picklist/PickList.d.ts
vendored
|
@ -341,6 +341,11 @@ export interface PickListProps {
|
|||
* @defaultValue 960px
|
||||
*/
|
||||
breakpoint?: string | undefined;
|
||||
/**
|
||||
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
||||
* @defaultValue 14rem
|
||||
*/
|
||||
scrollHeight?: string | undefined;
|
||||
/**
|
||||
* Whether to displays rows with alternating colors.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
multiple
|
||||
:metaKeySelection="metaKeySelection"
|
||||
:listStyle="listStyle"
|
||||
:scrollHeight="scrollHeight"
|
||||
:tabindex="sourceList && sourceList.length > 0 ? tabindex : -1"
|
||||
:dataKey="dataKey"
|
||||
:autoOptionFocus="autoOptionFocus"
|
||||
|
@ -104,6 +105,7 @@
|
|||
multiple
|
||||
:metaKeySelection="metaKeySelection"
|
||||
:listStyle="listStyle"
|
||||
:scrollHeight="scrollHeight"
|
||||
:tabindex="targetList && targetList.length > 0 ? tabindex : -1"
|
||||
:dataKey="dataKey"
|
||||
:autoOptionFocus="autoOptionFocus"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue