likec4
likec4 copied to clipboard
[Feature request] Filter by tag on react component.
Discussed in https://github.com/likec4/likec4/discussions/851
Originally posted by viktorgusev1984 July 12, 2024 Hello.
There is an idea that would help us work more with documentation.
I really like predicates in view and try to stick to inserting elements without specifying the final one.
At the same time, it is possible to exclude by tag in the view, but in order to make interactive documentation, I would really like to be able to pass a global filter in the react component for further refinement. I would say that it would be enough to add an additional filter to one tag. For example
<LikeC4View viewId={"index"} filterTag={"tagA"}/>
The reason why not to make different views is that I want to receive changes in all views if a new component or relationships is added.