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

Picklist/OrderList: expose index of element in ng-template #4084

Closed
benticlaskaris opened this issue Oct 3, 2017 · 0 comments
Closed

Picklist/OrderList: expose index of element in ng-template #4084

benticlaskaris opened this issue Oct 3, 2017 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@benticlaskaris
Copy link

[ ] 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 behaviour
It's not possible to get the index of the current element in ng-template

Expected behaviour
Exposed index to do additional styling to elements (i.e. style first 5 elements differently)

Minimal reproduction of the problem with instructions
Simply use a p-picklist in your template. S
What is the motivation/use case for changing the behaviour?
Our picklist should display different styling based on position. It can be accomplished doing additional logic (i.e. checking for element position in array) but can really slow the component because it's executed a lot of times

Please tell us about your environment:
OSX, WebStorm, NPM

Angular version: 4.3.2

PrimeNG version: 4.1.2

Browser: all

Language: all

@cagataycivici cagataycivici self-assigned this Oct 3, 2017
@cagataycivici cagataycivici added Type: New Feature Issue contains a new feature or new component request Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Type: New Feature Issue contains a new feature or new component request labels Oct 3, 2017
@cagataycivici cagataycivici added this to the 4.2.2 milestone Oct 3, 2017
@cagataycivici cagataycivici changed the title Picklist: expose index of element in ng-template Picklist/OrderList: expose index of element in ng-template Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants