primevue icon indicating copy to clipboard operation
primevue copied to clipboard

TreeSelect: Enhancements of component

Open havist opened this issue 2 years ago • 7 comments

Describe the feature you would like to see added

TreeSelect component differs from other select components (e.g. MultiSelect or Dropdown). It would be very handy to have the same possibilities on TreeSelect component like templating of tree node (item), filtering, etc. Tree component embedded inside TreeSelect component supports them. First of all, item templating should be supported. Naive implementation can be as follow:

<div class="p-treeselect-items-wrapper" :style="{ 'max-height': scrollHeight }">
    <TSTree ... >
        <template v-for="(_, name) in nodeTemplates" v-slot:[name]="slotData">
            <slot :name="name" v-bind="slotData" />
        </template>
    </TSTree>
    ...
</div>

where nodeTemplates are filtered TreeSelect slots, that are not value, indicator, header, empty and footer ones used in TreeSelect itself.

Is your feature request related to a problem?

No response

Describe the solution you'd like

No response

Describe alternatives you have considered

No response

Additional context

No response

havist avatar Feb 16 '23 09:02 havist

Definitely agree. Added on the roadmap.

tugcekucukoglu avatar Mar 06 '23 10:03 tugcekucukoglu

+1 please!

adamndev avatar Mar 17 '23 10:03 adamndev

+1

luketPatchworks avatar Mar 17 '23 10:03 luketPatchworks

+1

one-git-wonder avatar Mar 17 '23 10:03 one-git-wonder

Hello! I have a need for a TreeSelect with checkboxes and filtering, and so I found this issue. I have no idea if this is planned for anytime soon, but otherwise, am I correct in assuming it would work the same way to use the regular Tree component, enable checkboxes + filtering, and put it in a select/dropdown? I just started out using PrimeVue and I really like it so far, so thanks for everything!

KnifeFed avatar Sep 27 '23 19:09 KnifeFed

+1

petitkriket avatar Oct 24 '23 08:10 petitkriket

Any news on this issue? It's assigned almost a year ago.

DBolderman avatar Feb 13 '24 10:02 DBolderman