skip to Main Content

Html – Expand select option from other element

Background: I was trying to do some custom styling for my select element by changing the color and arrow example: <select :id="'select' + index" class="w-full px-4 py-2 pr-8 bg-theme text-white rounded-md hover:bg-theme/50 appearance-none" @focus="dropdownOpen = true" @blur="dropdownOpen = false"> <option…

VIEW QUESTION

Html – disable p-dropdown option when options are display in ng-template for looping them

i am trying to disable option in p-dropdown but i use ng-template for looping the options here is my code any suggestions ? thanks <p-dropdown [options]="task.statusOptions" optionLabel="name" optionValue="id" (onChange)="updateTaskCurrentStatus($event, task)" appendTo="body" [placeholder]="this.dropdownPlaceholder(task)" > <ng-template let-status pTemplate="status"> <div [ngStyle]="{ color: status.uiSetting.color}"…

VIEW QUESTION
Back To Top
Search