I am using PrimeNG multiselect with Angular 11. One of the option label has got longer text. I would like to slice the label if it is more than certain length. Can anyone help me how to achieve this?
The options is
@Input() options: ISelectOption<number, string>[];
<p-multiSelect
#multiSelect
[options]="options"
[(ngModel)]="values"
optionLabel="name"
dropdownIcon="fas fa-caret-down"
(onChange)="onValueChange()"
[placeholder]="placeholderText"
display="chip"
[optionValue]="_config?.optionValue"
[disabled]="disabled || readonly"
></p-multiSelect>