Filter Trigger API
ngs-filter-trigger is projected inside ngs-select. Its text content is the visible filter name. For multiple Select controls it renders an automatic selected-count badge; for single Select controls it renders the selected option text.
Add [data] to ngs-option when the trigger value template needs the full selected object instead of only the option value or text.
If no custom value template is provided, the trigger falls back to the selected option text from the parent ngs-select.
maxCount Maximum selected count before the multiple-selection badge renders a plus suffix, for example 3+. | number | 99 |
showZero Whether to render the multiple-selection badge when the parent Select has no selected values. | boolean | false |
Custom Value Template
Place ng-template[ngsFilterTriggerValue] inside ngs-filter-trigger to render the selected value from option data. The template receives the selected ngs-option[data] payload as its implicit value.
$implicit / data Selected ngs-option[data] payload. For multiple Select controls this is an array; for single Select controls this is one value. | unknown | unknown[] |
text Fallback selected option display text from the parent Select, available as let-text="text" when the template needs plain text alongside data. | string |
count Number of selected options. | number |
multiple Whether the parent Select is in multiple selection mode. | boolean |