docs: update docs to include isDisabled computed
This commit is contained in:
parent
3d0357c9c0
commit
ea2ab1a25e
@ -40,6 +40,10 @@ export default {
|
|||||||
from: 'right',
|
from: 'right',
|
||||||
// The target component to toggle open/close
|
// The target component to toggle open/close
|
||||||
target: 'target-component-id',
|
target: 'target-component-id',
|
||||||
|
// UI Hint; If the target panel is in a "disabled" state
|
||||||
|
isDisabled: studies => {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
// Overrides `defaultContext`, if specified
|
// Overrides `defaultContext`, if specified
|
||||||
context: ['ACTIVE_VIEWPORT:MAGIC'],
|
context: ['ACTIVE_VIEWPORT:MAGIC'],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -21,7 +21,6 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* MODULE GETTERS
|
* MODULE GETTERS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getViewportModule() {
|
getViewportModule() {
|
||||||
return '... react component ...';
|
return '... react component ...';
|
||||||
},
|
},
|
||||||
@ -98,6 +97,9 @@ const panelModule = {
|
|||||||
icon: 'th-list',
|
icon: 'th-list',
|
||||||
label: 'Segments',
|
label: 'Segments',
|
||||||
target: 'segment-panel',
|
target: 'segment-panel',
|
||||||
|
isDisabled: studies => {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
components: [
|
components: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user