Trrack / trrackvis

BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Add a `*` option to `nodeExtra` #44

Open kirangadhave opened 1 year ago

kirangadhave commented 1 year ago

Currently we have to specify an element for each event type innodeExtra. We should have a catch all key * which adds the element to every node. Something like:

{
    nodeExtra: {
        '*': <div>Will show for all</div>
    }
}

We can fix this so that it is rendered before an event specific nodeExtra value.