Skip to content

Commit 314177b

Browse files
DOC-2628: Documentation Enhancement: Enhanced Table.
1 parent 6be4711 commit 314177b

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

modules/ROOT/pages/advtable.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@
99

1010
include::partial$misc/admon-premium-plugin.adoc[]
1111

12-
[TIP]
13-
As of {productname} 7.0, the Advanced Tables plugin is now named {pluginname}. When using the {pluginname} plugin in your editor, continue to use {plugincode} in the `+plugins+` list.
14-
1512
The `+advtable+` plugin is a premium plugin that extends the core xref:table.adoc[`+table+` plugin] by adding the following advanced functionality:
1613

1714
* Sort options for rows and columns.
1815
* Row numbering column for tables.
1916
20-
== Try our Enhanced Tables Demo
17+
== Interactive demo
2118

2219
liveDemo::advtable[]
2320

@@ -35,12 +32,15 @@ tinymce.init({
3532
});
3633
----
3734

35+
[NOTE]
36+
As of {productname} 7.0, the Advanced Tables plugin is now named {pluginname}. When using the {pluginname} plugin in your editor, continue to use {plugincode} in the `+plugins+` list.
37+
3838
== Sorting table rows and columns
3939

4040
Tables can be sorted by row or column values using:
4141

4242
* The *Sort* options in the *Table* menu.
43-
* The *Sort* options in the table contextual menu.
43+
* The *Sort* options in the *Table* contextual menu.
4444
* The *Sort* options in the *Table* toolbar menu button.
4545

4646
*For example:*
@@ -66,7 +66,7 @@ A numeric and alpha value series are available by default. The available value s
6666

6767
image::advtable-row-numbering.png[Table with numeric row numbering column and row numbering menu open (Numeric item checked)]
6868

69-
A commonly desired customisation of the row-numbering column is that a table’s header and footer rows not be included in the numbering.
69+
A commonly desired customization of the row-numbering column is that a table’s header and footer rows not be included in the numbering.
7070

7171
This can be done using the xref:advtable_value_series[`+advtable_value_series+` option] to specify a custom generator.
7272

modules/ROOT/partials/configuration/advtable_value_series.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ tinymce.init({
125125
update: true,
126126
resizable: false,
127127
generator: function(info, rowIndex, colIndex) {
128-
var prevCount = info.prev ? info.prev.count : 0;
128+
let prevCount = info.prev ? info.prev.count : 0;
129129
if (info.sectionType === 'tbody' && info.cellType === 'td') {
130-
var newCount = prevCount + 1;
130+
let newCount = prevCount + 1;
131131
return {
132132
value: newCount,
133133
count: newCount
@@ -147,5 +147,4 @@ With this custom generator, when a table with a header and footer row already se
147147

148148
image::advtable-row-numbered-table-with-un-numbered-header-and-footer-rows.png[Row-numbered table with un-numbered header and footer rows]
149149

150-
NOTE: This simple custom generator is a demonstration. It has limitations. Perhaps most significant, it requires the header and footer rows be set _before_ row numbers are added to a table. If row numbers are added and then a header row, or a footer row, or both, are set, this generator will _not_ remove existing row numbers from the now-set header and footer rows.
151-
150+
NOTE: This simple custom generator is a demonstration. It has limitations. Perhaps most significant, it requires the header and footer rows be set *before* row numbers are added to a table. If row numbers are added and then a header row, or a footer row, or both, are set, this generator will *not* remove existing row numbers from the now-set header and footer rows.

0 commit comments

Comments
 (0)