Skip to content

Way to hide a Subcategory #486

Answered by pmconne
hsanand61564 asked this question in Q&A
Discussion options

You must be logged in to vote

The docs for DisplayStyleState.overrideSubcategory have this note:

If this style is associated with a ViewState attached to a Viewport, use Viewport.overrideSubCategory to ensure the changes are promptly visible on the screen.

I happen to be working on a PR right now that would eliminate the need to call Viewport.overrideSubCategory by automatically synchronizing the viewport's state when the display style's state changes, but for now you must use the Viewport API.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pmconne
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