Browse Source

Add completion

pull/3255/head
Vladyslav_Prykhodko 6 years ago
parent
commit
b9125827a1
  1. 6
      ui-ngx/src/app/shared/models/ace/service-completion.models.ts
  2. 17
      ui-ngx/src/app/shared/models/ace/widget-completion.models.ts

6
ui-ngx/src/app/shared/models/ace/service-completion.models.ts

@ -1382,5 +1382,11 @@ export const serviceCompletions: TbEditorCompletions = {
'See <a href="https://angular.io/api/common/http/HttpClient">HttpClient</a> for API reference.',
meta: 'service',
type: '<a href="https://angular.io/api/common/http/HttpClient">HttpClient</a>'
},
sanitizer: {
description: 'DomSanitizer Service<br>' +
'See <a href="https://angular.io/api/platform-browser/DomSanitizer">DomSanitizer</a> for API reference.',
meta: 'service',
type: '<a href="https://angular.io/api/platform-browser/DomSanitizer">DomSanitizer</a>'
}
}

17
ui-ngx/src/app/shared/models/ace/widget-completion.models.ts

@ -579,6 +579,23 @@ export const widgetContextCompletions: TbEditorCompletions = {
}
]
},
pushAndOpenState: {
description: 'Navigate to new dashboard state and adding intermediate states.',
meta: 'function',
args: [
{
name: 'id',
description: 'An array state object of the target dashboard state.',
type: 'Array <a href="https://github.com/thingsboard/thingsboard/blob/13e6b10b7ab830e64d31b99614a9d95a1a25928a/ui-ngx/src/app/core/api/widget-api.models.ts#L140">StateObject</a>',
},
{
name: 'openRightLayout',
description: 'An optional boolean argument to force open right dashboard layout if present in mobile view mode.',
type: 'boolean',
optional: true
}
]
},
updateState: {
description: 'Updates current dashboard state.',
meta: 'function',

Loading…
Cancel
Save