工具栏
表格编辑器实现顶部工具栏的插件,包含加粗、斜体、下划线、字体颜色、背景颜色,边框线、合并单元格、对齐方式、冻结、排序、筛选、上传图片、条件格式、公式等功能。
构造函数
用法
const editor = new window.shimo.sdk.sheet.Editor() editor.render({ content: [表格内容], container: [表格渲染容器] }) const toolbar = new window.shimo.sdk.sheet.plugins.Toolbar({ editor }) toolbar.render({ container: [表格工具栏容器] })
说明
该插件为PC端插件,如果是移动端,请初始化移动端对应的插件。参考移动端