Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从格式化程序中提取 gridId,在 colModel 上取消格式化函数?
谢谢,
格式化程序将使用 3 个参数调用cellValue,options并初始化为网格的 DOM rowData。this要获取网格 ID,您可以使用this.id或options.gid。在使用unformat回调的情况下,option包含较少的属性,但仍然可以使用this.id.
cellValue
options
rowData
this
this.id
options.gid
unformat
option