mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +00:00
f0b9292458
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 |
||
---|---|---|
.. | ||
res | ||
src | ||
test | ||
bundle.js | ||
README.md |
Directives
mct-scroll-x
is an attribute whose value is an assignable Angular expression. This two-way binds that expression to the horizontal scroll state of the element on which it is applied.mct-scroll-y
is an attribute whose value is an assignable Angular expression. This two-way binds that expression to the vertical scroll state of the element on which it is applied.