...
|
...
|
@@ -579,6 +579,23 @@ export const widgetContextCompletions: TbEditorCompletions = { |
579
|
579
|
}
|
580
|
580
|
]
|
581
|
581
|
},
|
|
582
|
+ pushAndOpenState: {
|
|
583
|
+ description: 'Navigate to new dashboard state and adding intermediate states.',
|
|
584
|
+ meta: 'function',
|
|
585
|
+ args: [
|
|
586
|
+ {
|
|
587
|
+ name: 'id',
|
|
588
|
+ description: 'An array state object of the target dashboard state.',
|
|
589
|
+ type: 'Array <a href="https://github.com/thingsboard/thingsboard/blob/13e6b10b7ab830e64d31b99614a9d95a1a25928a/ui-ngx/src/app/core/api/widget-api.models.ts#L140">StateObject</a>',
|
|
590
|
+ },
|
|
591
|
+ {
|
|
592
|
+ name: 'openRightLayout',
|
|
593
|
+ description: 'An optional boolean argument to force open right dashboard layout if present in mobile view mode.',
|
|
594
|
+ type: 'boolean',
|
|
595
|
+ optional: true
|
|
596
|
+ }
|
|
597
|
+ ]
|
|
598
|
+ },
|
582
|
599
|
updateState: {
|
583
|
600
|
description: 'Updates current dashboard state.',
|
584
|
601
|
meta: 'function',
|
...
|
...
|
|