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
59761e2d
Commit
59761e2d
authored
May 20, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add asc_setCellPosX and asc_setCellPosY in AutoFiltersOptions
parent
91efaf5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
cell/model/autofilters.js
cell/model/autofilters.js
+8
-0
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+7
-2
No files found.
cell/model/autofilters.js
View file @
59761e2d
...
...
@@ -129,6 +129,8 @@
this
.
Properties
=
g_oAutoFiltersOptionsProperties
;
this
.
cellId
=
null
;
this
.
cellPosX
=
null
;
this
.
cellPosY
=
null
;
this
.
values
=
null
;
this
.
filter
=
null
;
this
.
sortVal
=
null
;
...
...
@@ -180,6 +182,8 @@
},
asc_setCellId
:
function
(
cellId
)
{
this
.
cellId
=
cellId
;},
asc_setCellPosX
:
function
(
val
)
{
this
.
cellPosX
=
val
;
},
asc_setCellPosY
:
function
(
val
)
{
this
.
cellPosY
=
val
;
},
asc_setValues
:
function
(
values
)
{
this
.
values
=
values
;
},
asc_setFilterObj
:
function
(
filter
)
{
this
.
filter
=
filter
;
},
...
...
@@ -193,6 +197,8 @@
asc_setSortColor
:
function
(
val
)
{
this
.
sortColor
=
val
;
},
asc_getCellId
:
function
()
{
return
this
.
cellId
;
},
asc_getCellPosX
:
function
()
{
return
this
.
cellPosX
;
},
asc_getCellPosY
:
function
()
{
return
this
.
cellPosY
;
},
asc_getValues
:
function
()
{
return
this
.
values
;
},
asc_getFilterObj
:
function
()
{
return
this
.
filter
;
},
...
...
@@ -4886,6 +4892,8 @@
prot
[
"
asc_getValues
"
]
=
prot
.
asc_getValues
;
prot
[
"
asc_getFilterObj
"
]
=
prot
.
asc_getFilterObj
;
prot
[
"
asc_getCellId
"
]
=
prot
.
asc_getCellId
;
prot
[
"
asc_getCellPosX
"
]
=
prot
.
asc_getCellPosX
;
prot
[
"
asc_getCellPosY
"
]
=
prot
.
asc_getCellPosY
;
prot
[
"
asc_getDisplayName
"
]
=
prot
.
asc_getDisplayName
;
prot
[
"
asc_getIsTextFilter
"
]
=
prot
.
asc_getIsTextFilter
;
prot
[
"
asc_getColorsFill
"
]
=
prot
.
asc_getColorsFill
;
...
...
cell/view/WorksheetView.js
View file @
59761e2d
...
...
@@ -12836,7 +12836,10 @@
var
rangeButton
=
Asc
.
Range
(
autoFilter
.
Ref
.
c1
+
colId
,
autoFilter
.
Ref
.
r1
,
autoFilter
.
Ref
.
c1
+
colId
,
autoFilter
.
Ref
.
r1
);
var
cellId
=
ws
.
autoFilters
.
_rangeToId
(
rangeButton
);
var
posX
=
this
.
cols
[
autoFilter
.
Ref
.
c1
+
colId
].
left
+
this
.
cols
[
autoFilter
.
Ref
.
c1
+
colId
].
width
;
var
posY
=
this
.
rows
[
autoFilter
.
Ref
.
r1
].
top
+
this
.
rows
[
autoFilter
.
Ref
.
r1
].
height
;
//get filter object
var
filterObj
=
new
Asc
.
AutoFilterObj
();
if
(
filters
&&
filters
.
ColorFilter
)
...
...
@@ -12920,7 +12923,9 @@
var
autoFilterObject
=
new
Asc
.
AutoFiltersOptions
();
autoFilterObject
.
asc_setSortState
(
sortVal
);
autoFilterObject
.
asc_setCellId
(
cellId
);
autoFilterObject
.
asc_setCellPosX
(
posX
);
autoFilterObject
.
asc_setCellPosY
(
posY
);
autoFilterObject
.
asc_setCellId
(
cellId
);
autoFilterObject
.
asc_setValues
(
values
);
autoFilterObject
.
asc_setFilterObj
(
filterObj
);
autoFilterObject
.
asc_setAutomaticRowCount
(
automaticRowCount
);
...
...
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