Skip to content

Introducing data browser context

Compare
Choose a tag to compare
@megoth megoth released this 23 Nov 10:46

Breaking change

We're changing signatures of some central methods, namely label, mintNew, and render, which all make use of the new context object.

The context object passes some useful methods and properties to the various views, most significantly the ability to refer to other views (through context.session.paneRegistry) and the global store (through context.session.store). You can also still refer to the DOM object, e.g. for creating HTML elements, with context.dom. Not that there's also a getOutliner method on the context object, but this is only there as a hack to not break some existing functionality in older views.

Check index.d.ts for types.