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.
我想确定当前选定的列中正在使用哪个 Slick 编辑器。有没有办法做到这一点?
好的,我明白了。
我们可以使用带有列的 activeCell 来获取当前的选择列。然后从 column.editor 属性中,我们云比较当前选择的单元格拥有的编辑器是什么。
var column = columns[activeCell]; if(column.editor && column.editor === Slick.Editors.Text) { // Code with identification. }