Element: How is the column el-table-column of [Feature Request] table component type='selection'set disabled?

Created on 23 Aug 2017  ·  3Comments  ·  Source: ElemeFE/element

Existing Component

Component Name

table

Description

table组件的el-table-column type=‘selection‘ 的这一列怎么设置禁用 使复选框默认不能被勾选 我按照el-button组件 加上disabled 这个属性 没有生效 正确的方式应该怎么设置求告知

Most helpful comment

type=''selection‘有一个方法可以的selectable,如下:
<el-table-column type="selection" width="55" :selectable="selectFun">
selectFun中返回false就是不能被勾选的行

All 3 comments

Translation of this issue:

Existing Component

yes

Component Name

Table

Description

The table component of el-table-column type= 'selection' in the column that how to set the check box to disable the default cannot be checked in accordance with my el-button component with disabled this property did not come into the right way how to set up and inform

type=''selection‘有一个方法可以的selectable,如下:
<el-table-column type="selection" width="55" :selectable="selectFun">
selectFun中返回false就是不能被勾选的行

A proper translation of this feature.
Reason: I stumbled on this page when i was trying to select all rows and pass the data.

By using this attribute, :selectable="YourFunction", you are able to know when the select all button is marked.

Was this page helpful?
0 / 5 - 0 ratings