Skip to content
Snippets Groups Projects
Commit c1dfa1d9 authored by rhenck's avatar rhenck
Browse files

Use innerHTML for likert row preset selection

Options are now possibly rich text. This needs to be taken care of.
Also use extra span tag to preserve all whitesoaces in the index-suffix.

#279
parent ef1998e8
No related branches found
No related tags found
No related merge requests found
Pipeline #41710 passed
......@@ -24,8 +24,8 @@ import { TextLabel } from 'common/models/elements/element';
<mat-label>{{'preset' | translate }}</mat-label>
<mat-select [(ngModel)]="newLikertRow.value">
<mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option>
<mat-option *ngFor="let column of data.options; let i = index" [value]="i">
{{column.text}} (Index: {{i}})
<mat-option *ngFor="let column of data.options; let i = index" [value]="i"
[innerHTML]="'<span>' + column.text + ' (Index: ' + i + ')</span>' | safeResourceHTML">
</mat-option>
</mat-select>
</mat-form-field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment