-
Notifications
You must be signed in to change notification settings - Fork 325
Custom style
清沐 edited this page Mar 8, 2020
·
2 revisions
This module is only for
DefaultExcelBuilder
andDefaultStreamExcelBuilder
. Template building is supported naturally.
@ExcelColumn(style={"title->color:red","cell->color:green"})
Integer age;
@ExcelColumn(style="cell->color:green")
Integer age;
DefaultExcelBuilder.of(ArtCrowd.class)
.style("title->color:red","background-color:green;")
.build(dataList);
Use - >
separator:
-
title
indicates that the style is for the title; -
cell
indicates that the style is for the content line; -
odd
indicates that the style is for odd content lines; -
even
indicates that the style is for even content lines;
For specific style support, please move to:https://github.com/liaochong/myexcel/wiki/Style-support
-
Overview
概述 -
FAQ
常见问题 -
Dependency adding
依赖添加 -
Excel/Csv import
Excel/Csv导入 - 一对多导入
-
Excel default export
默认导出 -
Excel streaming export
流式导出 -
Dynamic export
动态导出 -
Excel template build
模板构建 -
CSV export
csv导出 -
Multiple sheet import
多sheet导入 -
Multiple sheet export
多sheet导出 - 聚合列&聚合导出
-
Custom style
自定义样式 -
Multilevel header
多级表头 -
Wrap within cell
单元格内换行 -
Image export
图片导出 -
Image import
图片导入 -
Hyperlink
链接 - 读取链接
-
Template row height setting
模板行高度设置 -
Drop-down-list
下拉列表 -
Custom convert
写入自定义转化 -
Formula usage
公式使用 -
Template cell setting
单元格设置 -
Header freeze
区域冻结 - 提示
-
Style support
样式支持 - 添加水印
- 按列读取
- 单元格斜线绘制
- 设置批注
- 版本日志