Skip to content

Commit 88eae15

Browse files
authored
feat: support for configurable max height in multi select container (#1324)
* feat: support for configurable max height in multi select container
1 parent cc99f03 commit 88eae15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

projects/components/src/multi-select/multi-select.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ import { MultiSelectJustify } from './multi-select-justify';
6969
</div>
7070
</ht-popover-trigger>
7171
<ht-popover-content>
72-
<div class="multi-select-content" [ngStyle]="{ 'min-width.px': triggerContainer.offsetWidth }">
72+
<div
73+
class="multi-select-content"
74+
[ngStyle]="{ 'min-width.px': triggerContainer.offsetWidth, 'max-height.px': this.maxHeight }"
75+
>
7376
<ng-container *ngIf="this.searchMode !== '${MultiSelectSearchMode.Disabled}'">
7477
<ng-container *ngIf="this.allOptions$ | async as allOptions">
7578
<ht-search-box
@@ -163,6 +166,9 @@ export class MultiSelectComponent<V> implements ControlValueAccessor, AfterConte
163166
@Input()
164167
public triggerLabelDisplayMode: TriggerLabelDisplayMode = TriggerLabelDisplayMode.Selection;
165168

169+
@Input()
170+
public maxHeight: number = 360;
171+
166172
@Output()
167173
public readonly selectedChange: EventEmitter<V[]> = new EventEmitter<V[]>();
168174

0 commit comments

Comments
 (0)