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
88ed5815
Commit
88ed5815
authored
Mar 29, 2016
by
GoshaZotov
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function in api - asc_changeFormatTableInfo
parent
45fac951
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
9 deletions
+44
-9
cell/api.js
cell/api.js
+6
-0
cell/apiDefines.js
cell/apiDefines.js
+7
-4
cell/model/autofilters.js
cell/model/autofilters.js
+25
-5
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+6
-0
No files found.
cell/api.js
View file @
88ed5815
...
@@ -660,6 +660,11 @@ var editor;
...
@@ -660,6 +660,11 @@ var editor;
var
ws
=
this
.
wb
.
getWorksheet
();
var
ws
=
this
.
wb
.
getWorksheet
();
return
ws
.
af_changeSelectionFormatTable
(
tableName
,
optionType
);
return
ws
.
af_changeSelectionFormatTable
(
tableName
,
optionType
);
};
};
spreadsheet_api
.
prototype
.
asc_changeFormatTableInfo
=
function
(
tableName
,
optionType
)
{
var
ws
=
this
.
wb
.
getWorksheet
();
return
ws
.
af_changeFormatTableInfo
(
tableName
,
optionType
);
};
spreadsheet_api
.
prototype
.
asc_setMobileVersion
=
function
(
isMobile
)
{
spreadsheet_api
.
prototype
.
asc_setMobileVersion
=
function
(
isMobile
)
{
this
.
isMobileVersion
=
isMobile
;
this
.
isMobileVersion
=
isMobile
;
...
@@ -3361,6 +3366,7 @@ var editor;
...
@@ -3361,6 +3366,7 @@ var editor;
prot
[
"
asc_getAddFormatTableOptions
"
]
=
prot
.
asc_getAddFormatTableOptions
;
prot
[
"
asc_getAddFormatTableOptions
"
]
=
prot
.
asc_getAddFormatTableOptions
;
prot
[
"
asc_clearFilter
"
]
=
prot
.
asc_clearFilter
;
prot
[
"
asc_clearFilter
"
]
=
prot
.
asc_clearFilter
;
prot
[
"
asc_changeSelectionFormatTable
"
]
=
prot
.
asc_changeSelectionFormatTable
;
prot
[
"
asc_changeSelectionFormatTable
"
]
=
prot
.
asc_changeSelectionFormatTable
;
prot
[
"
asc_changeFormatTableInfo
"
]
=
prot
.
asc_changeFormatTableInfo
;
// Drawing objects interface
// Drawing objects interface
...
...
cell/apiDefines.js
View file @
88ed5815
...
@@ -184,10 +184,13 @@ var c_oAscChangeSelectionFormatTable = {
...
@@ -184,10 +184,13 @@ var c_oAscChangeSelectionFormatTable = {
};
};
var
c_oAscChangeTableStyleInfo
=
{
var
c_oAscChangeTableStyleInfo
=
{
showColumnStripes
:
1
,
columnFirst
:
1
,
showFirstColumn
:
2
,
columnLast
:
2
,
showLastColumn
:
3
,
columnBanded
:
3
,
showRowStripes
:
4
rowHeader
:
4
,
rowTotal
:
5
,
rowBanded
:
6
,
filterButton
:
7
};
};
// Состояние редактора ячейки
// Состояние редактора ячейки
...
...
cell/model/autofilters.js
View file @
88ed5815
...
@@ -1904,7 +1904,7 @@
...
@@ -1904,7 +1904,7 @@
return
result
;
return
result
;
},
},
change
TableSty
leInfo
:
function
(
tableName
,
optionType
)
change
FormatTab
leInfo
:
function
(
tableName
,
optionType
)
{
{
var
tablePart
=
this
.
_getFilterByDisplayName
(
tableName
);
var
tablePart
=
this
.
_getFilterByDisplayName
(
tableName
);
...
@@ -1915,26 +1915,46 @@
...
@@ -1915,26 +1915,46 @@
switch
(
optionType
)
switch
(
optionType
)
{
{
case
c_oAscChangeTableStyleInfo
.
showColumnStripes
:
case
c_oAscChangeTableStyleInfo
.
columnBanded
:
{
{
tablePart
.
TableStyleInfo
.
ShowColumnStripes
=
!
tablePart
.
TableStyleInfo
.
ShowColumnStripes
;
tablePart
.
TableStyleInfo
.
ShowColumnStripes
=
!
tablePart
.
TableStyleInfo
.
ShowColumnStripes
;
break
;
break
;
}
}
case
c_oAscChangeTableStyleInfo
.
showFirstColumn
:
case
c_oAscChangeTableStyleInfo
.
columnFirst
:
{
{
tablePart
.
TableStyleInfo
.
ShowFirstColumn
=
!
tablePart
.
TableStyleInfo
.
ShowFirstColumn
;
tablePart
.
TableStyleInfo
.
ShowFirstColumn
=
!
tablePart
.
TableStyleInfo
.
ShowFirstColumn
;
break
;
break
;
}
}
case
c_oAscChangeTableStyleInfo
.
showLastColumn
:
case
c_oAscChangeTableStyleInfo
.
columnLast
:
{
{
tablePart
.
TableStyleInfo
.
ShowLastColumn
=
!
tablePart
.
TableStyleInfo
.
ShowLastColumn
;
tablePart
.
TableStyleInfo
.
ShowLastColumn
=
!
tablePart
.
TableStyleInfo
.
ShowLastColumn
;
break
;
break
;
}
}
case
c_oAscChangeTableStyleInfo
.
showRowStripes
:
case
c_oAscChangeTableStyleInfo
.
rowBanded
:
{
{
tablePart
.
TableStyleInfo
.
ShowRowStripes
=
!
tablePart
.
TableStyleInfo
.
ShowRowStripes
;
tablePart
.
TableStyleInfo
.
ShowRowStripes
=
!
tablePart
.
TableStyleInfo
.
ShowRowStripes
;
break
;
break
;
}
}
case
c_oAscChangeTableStyleInfo
.
rowHeader
:
{
tablePart
.
TableStyleInfo
.
ShowRowStripes
=
!
tablePart
.
TableStyleInfo
.
ShowRowStripes
;
break
;
}
/*case c_oAscChangeTableStyleInfo.rowTotal:
{
tablePart.TableStyleInfo.ShowRowStripes = !tablePart.TableStyleInfo.ShowRowStripes;
break;
}
case c_oAscChangeTableStyleInfo.rowHeader:
{
tablePart.TableStyleInfo.ShowRowStripes = !tablePart.TableStyleInfo.ShowRowStripes;
break;
}
case c_oAscChangeTableStyleInfo.filterButton:
{
tablePart.TableStyleInfo.ShowRowStripes = !tablePart.TableStyleInfo.ShowRowStripes;
break;
}*/
}
}
//TODO add to history
//TODO add to history
...
...
cell/view/WorksheetView.js
View file @
88ed5815
...
@@ -12789,6 +12789,12 @@
...
@@ -12789,6 +12789,12 @@
t
.
setSelection
(
new
Asc
.
Range
(
startCol
,
startRow
,
endCol
,
endRow
));
t
.
setSelection
(
new
Asc
.
Range
(
startCol
,
startRow
,
endCol
,
endRow
));
};
};
WorksheetView
.
prototype
.
af_changeFormatTableInfo
=
function
(
tableName
,
optionType
)
{
this
.
model
.
autoFilters
.
changeFormatTableInfo
(
tableName
,
optionType
);
//TODO добавить перерисовку таблицы и перерисовку шаблонов
};
/*
/*
* Export
* Export
...
...
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