Skip to content

Question about Selection include usage #570

Answered by jheer
kolmakova asked this question in Q&A
Discussion options

You must be logged in to vote

If possible, an ideal setup is to (1) first define selections at the finest granularity you need, (2) create downstream selections that use include to incorporate clauses from those upstream selections.

However, if you want to dynamically change inclusion/exclusion of clauses within a selection, you'll need to go beyond this setup that Mosaic expects. While not currently part of the "official" selection API, you can change the inclusion relays in JavaScript. A basic selection (step 1 above) "relays" clauses to those that include it (step 2 above). These downstream selections are stored within the upstream selection's Selection._relay property, which is of type Set<Selection>. You can (at …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by kolmakova
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
Converted from issue

This discussion was converted from issue #569 on October 30, 2024 14:32.