ngx-datatable의 각 머리글 셀에 사용자 지정 드롭 다운 구성 요소가 있습니다. 하지만 드롭 다운에서 클릭하면 ngx-datatable 본문에 들어갑니다. 문제를 해결하면 어떻게 도와 드릴까요?ngx-datatable의 각 머리글 셀에 사용자 지정 드롭 다운 구성 요소가 있습니다
저는 angular 4.0과 typescript 2.4를 사용하고 있습니다.
스크린 샷 :
<div>
<ngx-datatable style="height:450px;"
class='material'
[rows]='activeTabData | filtermanual:propKey:propValue | orderBy : {property: column, direction: direction}'
[columnMode]="'force'"
[headerHeight]="height"
[rowHeight]="getRowHeight"
[scrollbarV]="true"
[scrollbarH]="true"
[loadingIndicator]="loadingIndicator"
[rowClass]="getRowClass"
(page)="onPage($event)">
<div>
<ngx-datatable-column
[width]="50"
[frozenLeft]="true">
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template >
<input type="checkbox"
(ngModelChange)="checkButtonState($event, row)"
[ngModel]="row.status"
>
</ng-template>
</ngx-datatable-column>
<ul>
<li *ngFor="let col of tableKeys; let i=index; let last = last" >
<ngx-datatable-column name={{col}} width="230" [resizeable]="true">
<ng-template let-column="column" ngx-datatable-header-template >
<div class="draggable" style="height:30px;width:160px;background:transparent;z-index:1000;position:relative;cursor:pointer;"></div>
<ng2-multiselect
[options]="dropdowns[col]"
[loading]="isLoading"
[(ngModel)]="multiModels[col]"
[texts]="{'defaultTitle':col}"
(dropdownOpen)="dropdownOpen()"
(dropdownClosed)="dropdownClosed(col)"
>
</ng2-multiselect>
</ng-template>
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template >
<i [innerHTML]="row[col]"></i>
</ng-template>
</ngx-datatable-column>
</li>
</ul>
</div>
</ngx-datatable>
</div>
당신은 재현하기위한 플 런커를 만들 수 있습니까? – Aravind
"ngx-datatable body 내부로 들어가는 것"은 무엇을 의미합니까? 정확히 행동이란 무엇입니까? – Vega
안녕하세요 베가, 새 화면 정렬을 추가했습니다. 테이블의 본문에 드롭 다운이 숨겨져 있습니다. 제발 도와주세요. 어떻게 문제를 해결할 수 있습니까? – Mohit