仅根据条件为几行禁用行选择-Primefaces

时间:2019-04-03 05:24:01

标签: primeng

仅对几行禁用行选择-Primefaces

条件生效日期大于今天。.需要禁用。下面的代码不起作用

<p-dataTable class="pc-datatable" [value]="ddd.List" dataKey="code" expandableRows="true" [loading]="isLoading"
          expandedIcon="ui-icon-expand-less" collapsedIcon="ui-icon-expand-more" [(selection)]="selectedArray[i]">
          <p-column expander="true" [style]="{'width':'3%'}"></p-column>

          <p-column [style]="{'width':'3%'}"  selectionMode="multiple" 
          disabledSelection="#{((ddd.effEndDt | dateConverter) >  (minDate| dateConverter))}"
          styleClass="#{((ddd.effEndDt | dateConverter) >  (minDate| dateConverter)) ? 'selectionDisabled':''}"></p-column>

0 个答案:

没有答案