Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
7308e14b
Commit
7308e14b
authored
May 13, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support containsText and notContainsText in conditional formatting
parent
ee883e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
cell/model/Workbook.js
cell/model/Workbook.js
+12
-2
No files found.
cell/model/Workbook.js
View file @
7308e14b
...
...
@@ -3509,8 +3509,8 @@ Woorksheet.prototype._updateConditionalFormatting = function(range) {
oRule
=
aRules
[
j
];
// ToDo aboveAverage, beginsWith, cellIs, containsBlanks, containsErrors,
// ToDo
containsText, dataBar, duplicateValues
, endsWith, expression, iconSet, notContainsBlanks,
// ToDo notContainsErrors,
notContainsText, timePeriod, top10, uniqueValues
(page 2679)
// ToDo
dataBar
, endsWith, expression, iconSet, notContainsBlanks,
// ToDo notContainsErrors,
timePeriod, top10
(page 2679)
switch
(
oRule
.
type
)
{
case
Asc
.
ECfType
.
colorScale
:
if
(
1
!==
oRule
.
aRuleElements
.
length
)
{
...
...
@@ -3560,6 +3560,16 @@ Woorksheet.prototype._updateConditionalFormatting = function(range) {
}
}
break
;
case
Asc
.
ECfType
.
containsText
:
case
Asc
.
ECfType
.
notContainsText
:
if
(
oRule
.
dxf
)
{
condition
=
oRule
.
type
===
Asc
.
ECfType
.
containsText
;
values
=
this
.
_getValuesForConditionalFormatting
(
sqref
);
for
(
cell
=
0
;
cell
<
values
.
c
.
length
;
++
cell
)
{
values
.
c
[
cell
].
setConditionalFormattingStyle
((
condition
===
(
-
1
===
values
.
v
[
cell
].
indexOf
(
oRule
.
text
)))
?
null
:
oRule
.
dxf
);
}
}
break
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment