1

I have a list of sound, the requirement is relevant sound should play when the mouse hover on the sound name in the list.

  <select class="cc-select-dropdown form-control" id="defaultMerge"      formControlName="DefaultNotificationAlert">
        <option *ngFor="let option of soundList" (mouseover)='playSound()'   [ngValue]="option">{{option}}</option>

The problem is I couldn't find any event that works with the select options

2 Answers 2

1

you can't catch events like that in <option> it's up to the browser. if you want you have to write a custom dropdown yourself

Sign up to request clarification or add additional context in comments.

Comments

0

you can't do it in the <option> of the <select> tag. But you can do it with <mat-select>, just use (mouseover) in <mat-option>.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.