ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
46 lines (45 loc) • 1.88 kB
HTML
<sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
<nz-select
[]="disabled"
[(ngModel)]="_value"
(ngModelChange)="change($event)"
[]="ui.size"
[]="ui.placeholder"
[]="ui.notFoundContent"
[]="ui.dropdownClassName"
[]="ui.allowClear"
[]="ui.dropdownStyle"
[]="ui.customTemplate"
[]="ui.suffixIcon"
[]="ui.removeIcon"
[]="ui.clearIcon"
[]="ui.menuItemSelectedIcon"
[]="ui.maxTagPlaceholder"
[]="ui.dropdownRender"
[]="i.autoClearSearchValue"
[]="i.borderless"
[]="i.autoFocus"
[]="i.dropdownMatchSelectWidth"
[]="i.serverSearch"
[]="i.maxMultipleCount"
[]="i.mode"
[]="i.showSearch"
[]="i.tokenSeparators"
[]="i.maxTagCount"
[]="i.compareWith"
[]="i.optionHeightPx"
[]="i.optionOverflowSize"
(nzOpenChange)="openChange($event)"
(nzOnSearch)="searchChange($event)"
(nzScrollToBottom)="scrollToBottom()"
>
<ng-container *ngIf="!hasGroup">
<nz-option *ngFor="let o of data" [nzLabel]="o.label" [nzValue]="o.value" [nzDisabled]="o.disabled"></nz-option>
</ng-container>
<ng-container *ngIf="hasGroup">
<nz-option-group *ngFor="let i of data" [nzLabel]="i.label">
<nz-option *ngFor="let o of i.children" [nzLabel]="o.label" [nzValue]="o.value" [nzDisabled]="o.disabled"></nz-option>
</nz-option-group>
</ng-container>
</nz-select>
</sf-item-wrap>