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

Maximum & Minimum number of items (same as MultiNodeTreePicker) #55

Open
ja0b opened this issue Nov 27, 2021 · 3 comments
Open

Maximum & Minimum number of items (same as MultiNodeTreePicker) #55

ja0b opened this issue Nov 27, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ja0b
Copy link

ja0b commented Nov 27, 2021

Is your feature request related to a problem? Please describe.
I'm trying to use UmbNav in a nested content object and to have a main navigation item with some sub nav items in there, I needed to do it like this because there are other properties I need to attach to the main navigation item e.g icon, colours, etc.
but there is no way to limit the maximum/minimum number of items you can add to the UmbNav editor.

My workaround would be to use 2 pickers, one for the main item with Minimum number of items = 1 and the other one for the sub nav but doing this means I loss all the good things UmbNav has already.

Describe the solution you'd like
I think the solution would be to implement Maximum & Minimum number of items just like the MultiNodeTreePicker

Thanks,
Ale

@AaronSadlerUK
Copy link
Owner

This has crossed my mind previously, however I couldn't decide the best way to implement it, around the nested menu items

@ja0b
Copy link
Author

ja0b commented Nov 27, 2021

What do you think about the idea of doing it like the MNTP ?

@AaronSadlerUK
Copy link
Owner

I will look into adding this in the next release, no promises though.

I'll look at restricting the top level items.

@AaronSadlerUK AaronSadlerUK added the enhancement New feature or request label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants