Add methods to tree view via scope for more fine grained control. Can supply a "allowSelection" function which should return true if a given selection is allowed. This is executed before a node is selected and allows you to prevent selection. Before this, if you wanted to prevent the selection from changing, you had to wait for it to change and then change it back to the original value. Can also supply an "onSelection" function which is called when a value is successfully selected. This allows you to handle the selection event without waiting for digest. You can still $watch "selectedObject" if you prefer. Additionally, this changes the tree node to trigger a digest only when the value is set via a MouseClick, instead of every time. Tidies up directive scope bindings to clarify usage. https://github.com/nasa/openmct/issues/1360
This directory contains bundles containing common user interface elements of Open MCT; that is, the user interface for the application as a whole (as opposed to for specific features) is implemented here.
Extensions
This bundles adds a stylesheets
extension category used to inject CSS
from bundles. These extensions are declaration-only (no scripted
implementation is needed or used); a single property, stylesheetUrl
,
should be provided, with a path to the relevant CSS file (including
extension) relative to the resources directory for that bundle.
Links to these CSS files are appended to the head when the application is started. These are added in standard priority order (see documentation for the framework layer); the order of inclusion of style sheets can change the way they are handled/understood by the browser, so priority can be used to provide control over this order.