条件格式指南
应用场景
支持的接口
1.
2.
3.
4.
条件格式约束
ranges
1.
2.
3.
4.
5.
style
1.
2.
3.
4.
rule_type & attrs
operator | formula1 | formula2 | 备注 |
---|---|---|---|
equal | 必填 | 限定值范围:等于 | |
notEqual | 必填 | 限定值范围:不等于 | |
greaterThan | 必填 | 限定值范围:大于 | |
greaterThanOrEqual | 必填 | 限定值范围:大于或等于 | |
lessThan | 必填 | 限定值范围:小于 | |
lessThanOrEqual | 必填 | 限定值范围:小于或等于 | |
between | 必填 | 必填 | 限定值范围:介于 |
notBetween | 必填 | 必填 | 限定值范围:未介于 |
{
"condition_format": {
"rule_type": "cellIs",
"attrs": [
{
"operator": "equal",
"formula": [
"\"aaaaa\"" //文本需要用""包裹
]
}
]
},
"condition_format": {
"rule_type": "cellIs",
"attrs": [
{
"operator": "between",
"formula": [
"1",
"10"
]
}
]
}
}
operator | text | 备注 |
---|---|---|
containsText | 必填 | 包含以下内容:文本包含 |
notContains | 必填 | 包含以下内容:文本不包含 |
is | 必填 | 包含以下内容:文本为 |
beginsWith | 必填 | 包含以下内容:开头为 |
endsWith | 必填 | 包含以下内容:结尾为 |
{
"condition_format": {
"rule_type": "containsText",
"attrs": [
{
"operator": "is",
"text": "******"
}
]
}
}
operator | timePeriod | 备注 |
---|---|---|
is | yesterday | 日期为:昨天 |
is | today | 日期为:今天 |
is | tomorrow | 日期为:明天 |
Is | last7Days | 日期为:最近7天 |
{
"condition_format": {
"rule_type": "timePeriod",
"attrs": [
{
"operator": "is",
"time_period": "today"
}
]
}
}
修改于 2023-01-18 06:34:21