-
Hi! Noticed a new I'm using Mosaic Core with the What is the correct way to exclude a component from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If possible, an ideal setup is to (1) first define selections at the finest granularity you need, (2) create downstream selections that use 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 |
Beta Was this translation helpful? Give feedback.
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 typeSet<Selection>
. You can (at …