【14.1.3】支持页眉页脚的设置吗?
14.1.3可以支持页眉页脚吗?我增加了布局的配置,发现不能显示.{
"id": "pageLayout",
"text": "页面布局",
"buttonGroups": [
{
"label": "页面设置",
"thumbnailClass": "ribbon-thumbnail-page-setup",
"indicator": "indicatorPage",
"commandGroup": {
"children": [
{
"direction": "horizontal",
"children": [
{
"command": "margins",
"type": "dropdown",
"children": [
"marginSelector",
"separator",
"customMargins"
]
},
{
"command": "orientation",
"type": "dropdown",
"children": [
"orientationPortrait",
"orientationLandscape"
]
},
{
"command": "paperSize",
"type": "dropdown",
"children": [
"paperKindSelector"
]
},
{
"command": "printArea",
"type": "dropdown",
"children": [
"setPrintArea",
"clearPrintArea"
]
},
{
"command": "breaks",
"type": "dropdown",
"children": [
"insertPageBreak",
"removePageBreak",
"separator",
"resetAllPageBreaks"
]
},
"background",
"deleteBackground",
"printTitles"
]
}
]
}
},
{
"label": "调整为合适大小",
"thumbnailClass": "ribbon-thumbnail-scale-to-fit",
"indicator": "indicatorPage",
"commandGroup": {
"children": [
{
"direction": "horizontal",
"children": [
{
"direction": "vertical",
"commands": [
"scaleToFitWidthText",
"scaleToFitHeightText",
"scaleToFitScaleText"
]
},
{
"direction": "vertical",
"commands": [
"fitPageWidth",
"fitPageTall",
"fitPageScale"
]
}
]
}
]
}
},
{
"label": "工作表选项",
"thumbnailClass": "ribbon-thumbnail-sheet-option",
"indicator": "indicatorSheet",
"commandGroup": {
"children": [
{
"direction": "horizontal",
"children": [
{
"direction": "vertical",
"commands": [
"pageLayoutGridlinesText",
"pageLayoutViewGridlines",
"pageLayoutPrintGridlines"
]
},
{
"commands": [
"separator"
]
},
{
"direction": "vertical",
"commands": [
"pageLayoutHeadingsText",
"pageLayoutViewHeadings",
"pageLayoutPrintHeadings"
]
},
{
"commands": [
"separator"
]
},
{
"commands": [
"printLineVisible"
]
}
]
}
]
}
}
],
"visibleWhen": "AllowPrintCurrentSheet && !IsInTableSheetDesignMode"
}
您好!14.3.4版本可以支持页眉页脚设置,请教下您需要实现怎样的设置?您提供的代码片段看起来并不是设置页眉页脚的代码,需要通过PrintInfo对象设置页眉页脚,请参见官网教程了解详情:
https://demo.grapecity.com.cn/spreadjs/SpreadJSTutorial/features/print/custom-print/purejs Wilson.Zhang 发表于 2024-12-13 17:15
您好!14.3.4版本可以支持页眉页脚设置,请教下您需要实现怎样的设置?您提供的代码片段看起来并不是设置页 ...
我提供的代码是配置页面菜单的代码,是根据这个代码动态配置的菜单的对象,是config.js里的,页眉页脚是在页面布局里的,我是否有配置错误,14.1.3没有生效这个菜单 水牛 发表于 2024-12-13 17:23
我提供的代码是配置页面菜单的代码,是根据这个代码动态配置的菜单的对象,是config.js里的,页眉页脚是 ...
您可以直接通过设置页眉页脚的代码设置,为何要通过改写顶部工具栏的方式呢?在此除了设置页眉页脚还有其他需求吗? Wilson.Zhang 发表于 2024-12-13 17:50
您可以直接通过设置页眉页脚的代码设置,为何要通过改写顶部工具栏的方式呢?在此除了设置页眉页脚还有其 ...
顶部的工具栏是可以自定义页眉页脚,如果代码实现只能按照一种页眉页脚设置,或者需要通过代码增加一个按钮展开页眉页脚的配置,14.1.3可以有页面布局的菜单吗?如何配置上这个菜单?
水牛 发表于 2024-12-16 09:29
顶部的工具栏是可以自定义页眉页脚,如果代码实现只能按照一种页眉页脚设置,或者需要通过代码增加一个按 ...
抱歉之前的回答不准确,我重新测试了下14.1.3版本的在线表格编辑器,发现14.1.3版本的工具栏没有页眉页脚设置,且14.1.3版本没有公开的API能够支持页眉页脚设置。
您可以升级版本使用页眉页脚,从15版本开始即支持了页眉页脚设置。
页:
[1]