Commit b9125827a1502ff645aee29aa0748cbfad50de86

Authored by Vladyslav_Prykhodko
1 parent 9ef632d7

Add completion

... ... @@ -1382,5 +1382,11 @@ export const serviceCompletions: TbEditorCompletions = {
1382 1382 'See <a href="https://angular.io/api/common/http/HttpClient">HttpClient</a> for API reference.',
1383 1383 meta: 'service',
1384 1384 type: '<a href="https://angular.io/api/common/http/HttpClient">HttpClient</a>'
  1385 + },
  1386 + sanitizer: {
  1387 + description: 'DomSanitizer Service<br>' +
  1388 + 'See <a href="https://angular.io/api/platform-browser/DomSanitizer">DomSanitizer</a> for API reference.',
  1389 + meta: 'service',
  1390 + type: '<a href="https://angular.io/api/platform-browser/DomSanitizer">DomSanitizer</a>'
1385 1391 }
1386 1392 }
... ...
... ... @@ -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',
... ...