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

id property to menuitem api #2559

Closed
CSHaze opened this issue Apr 19, 2017 · 1 comment
Closed

id property to menuitem api #2559

CSHaze opened this issue Apr 19, 2017 · 1 comment
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@CSHaze
Copy link

CSHaze commented Apr 19, 2017

[ ] 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
There is no way to set an id attribute (that will appear in html) of items that are set in the component ts.

Expected behavior
Be able to set an id in component ts that will be displayed as an id attribute in the html.

Minimal reproduction of the problem with instructions
Create a menu item array in the component ts file.
Bind this to a menu bar.
Notice there is no option to set an id in the menu item.
Examine html, notice there is no id attribute on any of the menu items.

What is the motivation / use case for changing the behavior?
I would like ids so I can find elements easier when running automated testing using Protractor.

Please tell us about your environment:
Windows 7, WebStorm, NPM

  • Angular version: 2.0.X

  • PrimeNG version: 2.0.X

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

@cagataycivici cagataycivici self-assigned this Jun 22, 2017
@cagataycivici cagataycivici changed the title Feature Request -Add functionality to allow setting of id attribute for items defined in component ts (menu items) id property to menuitem api Jun 22, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Jun 22, 2017
@PikaChokeMe
Copy link
Contributor

I am currently trying to test primeNG with our own automated test software, and this is definitely a feature that would be highly desired.

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