-
Notifications
You must be signed in to change notification settings - Fork 42
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
Ability to set itemID #5
Comments
If I do add the option for setting item ID, how will you ensure its uniqueness? |
im not really checking it, i generate the ID from a random btw 10000000 and 9999999, since each user in my case will generate at the maximum of 10, so the risk is the minimum i understand what are you saying! maybe you could add somekind of "TAG" like normal views .setTag thank you |
My menu model has unique id's that I'd like to use as menu-item ids. |
If I could attach a click listener to a menu-item that would work. |
@danbrough I like your suggestion of throwing an exception in case the given ID isn't unique. If I understand you correctly, this would mean all the
Do these changes meet your requirement? |
It would work, but it would be nasty to resolve if one of my id's conflicted with a generated id. |
i saw that the is generated using the number of items, is there any way to make a setItemId?
why:
in my nav drawer, user can create ITEMS (categories) and than add some items to this categories, in this way that the Sublime do, all the time will have a new ID if i delete or add another item, this make a big mess in the categories, since its linked produts -> itemID(categorie)
The text was updated successfully, but these errors were encountered: