Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onSelectionChange to OrderList #2180

Closed
simdevmon opened this issue Feb 28, 2017 · 2 comments
Closed

Add onSelectionChange to OrderList #2180

simdevmon opened this issue Feb 28, 2017 · 2 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@simdevmon
Copy link

I'm submitting a ...

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
When the selection of the order list changes, there is no way to get informed about that.

Expected behavior
OrderList should support an onChange event similar to Dropdown, Spinner, ... which gets fired, when the current selection has changed.

What is the motivation / use case for changing the behavior?
I want to implement a master-detail view of items, which can be sorted. When the selection of the order list changes, I want to display details of the selected item in a separate area.

@Mrtcndkn
Copy link
Contributor

Mrtcndkn commented Mar 7, 2017

There is onReorder method for orderlist when the order changed it will be invoked it can solve your problem.

@simdevmon
Copy link
Author

onReorder does not help me, because I have an additional button outside of the component to delete the current selection for example. So I need to be informed when the selection changes (no reorder).

@Mrtcndkn Mrtcndkn added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Apr 25, 2017
@Mrtcndkn Mrtcndkn added this to the 4.0.1 milestone Apr 25, 2017
@cagataycivici cagataycivici changed the title Support onChange event for OrderList Add itemSelect and itemUnselect events to OrderList May 15, 2017
@cagataycivici cagataycivici added Type: New Feature Issue contains a new feature or new component request and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels May 15, 2017
@cagataycivici cagataycivici self-assigned this May 15, 2017
@cagataycivici cagataycivici changed the title Add itemSelect and itemUnselect events to OrderList Add onSelectionChange to OrderList May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

3 participants