This repository has been archived by the owner on May 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
g(lobals)
greenify edited this page Sep 25, 2014
·
5 revisions
g
is the semiglobal namespace (for this msa instance) and is used as Mediator and event bus.
You can change any property of the g
attribute.
- config (global user settings)
- columns (properties that apply to all columns, e.g. hidden state)
- colorscheme
- selcol (user selection, backbone collection)
- vis (visible subviews)
- zoomer (width, height, fontsize ...)
Every view will listen to the corresponding change events.
So to hide the markers, do a call like this:
msa.g.vis.set("conserv", false)
You can also predefine those properties in the msa constructor:
new msa({data: {vis: {conserv: false}, ...}})