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

请问为何我已经将表数据的某一个设置为自动合并但最后结果不生效但设置不可滑动可以生效 #310

Open
lxx328 opened this issue Sep 12, 2024 · 0 comments

Comments

@lxx328
Copy link

lxx328 commented Sep 12, 2024

        final FormTableData<Form> tableData = FormTableData.create(table,data.getFormName(),data.getFillData().get(1).size()-data.getDepth(),forms);             //表格的点击事件监听器。当用户点击表格中的单元格时,会触发相应的操作。在这里,如果被点击的单元格不为空,则会显示软键盘。             tableData.setOnItemClickListener(new TableData.OnItemClickListener<Form>() {                 @Override                 public void onClick(Column column, String value, Form form, int col, int row) {                     if (value != null) {                         showToast("点击了"+value);                     }                  }              });             int size = 1;             for (Column column : tableData.getColumns()) {                 column.setColumnName(String.valueOf(size));                 column.setId(size);                 if (size<=data.getDepth()){                     column.setAutoCount(true);                     column.setMaxMergeCount(4);                     column.setAutoMerge(true);                     column.setFixed(true);                 }                 size++;             }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant