I have a dropdown that contains an input field and two more dropdowns. I am looking for a way to retrieve the values of all three fields when the search button is clicked.
Screenshot
https://i.sstatic.net/5Imaq.png
Code
HTML
<nz-dropdown-menu #menu="nzDropdownMenu">
<div class="card search-box p-2">
<div class="mb-2">
<label for="">Search By {{ column.name }}</label> <br>
<input nz-input placeholder="Type here..." />
</div>
<div class="mb-2">
<label for="sort">Sort Order</label> <br>
<nz-select ngModel="none" class="text-left mr-2" style="width:100%;">
<nz-option nzValue="none" nzLabel="None"></nz-option>
<nz-option nzValue="asc" nzLabel="Ascending"></nz-option>
<nz-option nzValue="desc" nzLabel="Descending"></nz-option>
</nz-select>
</div>
<div class="mb-2">
<label for="op">Filter Column</label> <br>
<nz-select ngModel="contains" class="text-left mr-2" style="width:100%;">
<nz-option nzValue="contains" nzLabel="Contains"></nz-option>
<nz-option nzValue="like" nzLabel="Like"></nz-option>
</nz-select>
</div>
<button type="button" class="btn btn-warning w-100 mt-2" (click)="search()"><i class="fe fe-search"></i> Search</button>
</div>
</nz-dropdown-menu>
Component
search(): void {
// Code to retrieve values will go here
}