规格 - 如何编辑表格的内容
我有一个sptablePresenter
,我想编辑单元格内容。
在许多框架中,可以直接编辑表格的内容,而无需打开新的组件(对话框或主详细信息样式)。我该如何使用规格执行此操作?
I have an SpTablePresenter
and I would like to edit the cell contents.
In many frameworks it is possible to edit the contents of a table directly in place, without needing to open a new component (dialog or master-detail style). How can I do this with Spec ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
表格和树表中的表格中的一个机制来编辑规格中的字符串列
,可以通过声明列以编辑为编辑来编辑字符串。通过发送
OnAcceptedition:
,它接收两个参数,即正在编辑的对象和编辑字符串。以下代码将显示如何完成:
这将产生(使用GTK3后端)此输出:
< img src =“ https://i.sstatic.net/qvv9m.png” alt =“示例编辑到位”>
Tables and tree tables in Spec inplement a mechanism to edit string columns in place
in Spec, string columns can be edited by just declaring the column to be editable sending the
beEditable
message and adding a callback to process the edition by sendingonAcceptEdition:
, which receives two parameters, the object being editing and the edited string.The following code will show how this can be done:
This will produce (with the Gtk3 backend) this output: