Skip to content

How do 'estimatedWidth' and 'priority' attributes work? #434

Answered by jakobz
WFZ1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Both properties affects how menu items collapse into "more" and burger, in case they doesn't fit.
EstimatedWidth should specify width of the menu item. We ask to set this manually, as measuring items programmatically is tricky, and cause double-rendering.
Priority defines the order in which items collapse. Items with lower priority would collapse first. You can set equal priorities to collapse certain items simultaneously.
100500 is a number we often use to set some really big number. It's originates from a meme.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WFZ1
Comment options

Answer selected by WFZ1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants