Browse Source

Added help popup width

pull/12885/head
mpetrov 2 years ago
parent
commit
c4cb741e86
  1. 1
      ui-ngx/src/app/modules/home/components/calculated-fields/components/dialog/calculated-field-dialog.component.html
  2. 1
      ui-ngx/src/app/modules/home/components/calculated-fields/components/test-dialog/calculated-field-script-test-dialog.component.html
  3. 2
      ui-ngx/src/app/shared/components/js-func.component.html
  4. 2
      ui-ngx/src/app/shared/components/js-func.component.ts

1
ui-ngx/src/app/modules/home/components/calculated-fields/components/dialog/calculated-field-dialog.component.html

@ -102,6 +102,7 @@
[scriptLanguage]="ScriptLanguage.TBEL" [scriptLanguage]="ScriptLanguage.TBEL"
[highlightRules]="argumentsHighlightRules$ | async" [highlightRules]="argumentsHighlightRules$ | async"
[editorCompleter]="argumentsEditorCompleter$ | async" [editorCompleter]="argumentsEditorCompleter$ | async"
[helpPopupStyle]="{ width: '1200px' }"
helpId="calculated-field/expression_fn" helpId="calculated-field/expression_fn"
> >
<div toolbarPrefixButton class="tb-primary-background tbel-script-lang-chip">{{ 'api-usage.tbel' | translate }}</div> <div toolbarPrefixButton class="tb-primary-background tbel-script-lang-chip">{{ 'api-usage.tbel' | translate }}</div>

1
ui-ngx/src/app/modules/home/components/calculated-fields/components/test-dialog/calculated-field-script-test-dialog.component.html

@ -44,6 +44,7 @@
[highlightRules]="data.argumentsHighlightRules" [highlightRules]="data.argumentsHighlightRules"
[scriptLanguage]="ScriptLanguage.TBEL" [scriptLanguage]="ScriptLanguage.TBEL"
[editorCompleter]="data.argumentsEditorCompleter" [editorCompleter]="data.argumentsEditorCompleter"
[helpPopupStyle]="{ width: '1200px' }"
resultType="object" resultType="object"
helpId="calculated-field/expression_fn" helpId="calculated-field/expression_fn"
/> />

2
ui-ngx/src/app/shared/components/js-func.component.html

@ -41,7 +41,7 @@
{{'js-func.tidy' | translate }} {{'js-func.tidy' | translate }}
</button> </button>
<ng-content select="[toolbarSuffixButton]"></ng-content> <ng-content select="[toolbarSuffixButton]"></ng-content>
<div *ngIf="helpId" [tb-help-popup]="helpId"></div> <div *ngIf="helpId" [tb-help-popup]="helpId" [tb-help-popup-style]="helpPopupStyle"></div>
<fieldset style="width: initial"> <fieldset style="width: initial">
<div matTooltip="{{(fullscreen ? 'fullscreen.exit' : 'fullscreen.expand') | translate}}" <div matTooltip="{{(fullscreen ? 'fullscreen.exit' : 'fullscreen.expand') | translate}}"
matTooltipPosition="above" matTooltipPosition="above"

2
ui-ngx/src/app/shared/components/js-func.component.ts

@ -106,6 +106,8 @@ export class JsFuncComponent implements OnInit, OnChanges, OnDestroy, ControlVal
@Input() globalVariables: Array<string>; @Input() globalVariables: Array<string>;
@Input() helpPopupStyle: Record<string, any> = {};
@Input() @Input()
@coerceBoolean() @coerceBoolean()
disableUndefinedCheck = false; disableUndefinedCheck = false;

Loading…
Cancel
Save