Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

行内编辑提供单行校验的API #194

Open
ex90rts opened this issue Apr 13, 2017 · 0 comments
Open

行内编辑提供单行校验的API #194

ex90rts opened this issue Apr 13, 2017 · 0 comments
Assignees

Comments

@ex90rts
Copy link
Contributor

ex90rts commented Apr 13, 2017

目前表格在启动行内编辑之后,如果有多行同时处于编辑态,进行表单校验时,只能通过tableMethods.getData()方式来触发:

function func(rowData, ctx, table) {
    const tableMethods = ctx.fn.getTableMethods({fieldId: 'tableId'});
    const data = tableMethods.getData();
    if (data.pass) {
        table.saveRow(rowData);
    }
}

但是这个校验触发是整个表格的,其实当前操作知识想保存当前的这个row,这个row的数据校验有可能是通过的,但是整个表格其它row有不通过的也会导致当前这个row无法保存。

因此,希望能够提供单行校验的API,或者在rowData中能包含当前row是否通过校验的信息。

@eternalsky eternalsky self-assigned this Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants