Skip to content

Commit 0c242f6

Browse files
committed
docs: usage of sort: true, and sort
1 parent 1458739 commit 0c242f6

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/hyper-table/plugin.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"description": "Present large amounts of data beautifully and efficiently, generate pivot tables and other advanced table presentations for tiddlers.",
55
"core-version": ">=5.1.22",
66
"plugin-type": "plugin",
7-
"version": "1.4.2",
7+
"version": "1.4.3",
88
"list": "readme ParametersTable tree"
99
}

src/hyper-table/widgets/table.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ class ListTableWidget extends Widget {
7171
...this.getSortOptions(),
7272
...(this.getOtherOptionFromString() ?? {}) as ListTableConstructorOptions,
7373
};
74-
// DEBUG: console this.getSortOptions()
75-
console.log(`this.getSortOptions()`, this.getSortOptions());
7674
this.tableInstance = new ListTableSimple(option);
7775
this.additionalFeatures(containerElement);
7876

wiki/tiddlers/examples/BasicTableCaptionTitle.tid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ title: examples/BasicTableCaptionTitle
1414
{
1515
field: 'caption',
1616
title: 'Caption',
17+
sort: true,
1718
fieldFormat: ({ caption }) => $tw.wiki.renderText('text/plain', 'text/vnd.tiddlywiki', caption),
1819
width: 'auto',
1920
},

wiki/tiddlers/examples/BasicTableJSONConfig.tid

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ title: examples/BasicTableJSONConfig
3232
}
3333
]
3434
"""
35+
sort="orderDate,sales,orderId"
3536
columns="""
3637
[
3738
{
@@ -50,25 +51,21 @@ title: examples/BasicTableJSONConfig
5051
field: 'productName',
5152
title: 'Product Name',
5253
width: 'auto',
53-
sort: true,
5454
},
5555
{
5656
field: 'category',
5757
title: 'Category',
5858
width: 'auto',
59-
sort: true,
6059
},
6160
{
6261
field: 'subCategory',
6362
title: 'Sub-Category',
6463
width: 'auto',
65-
sort: true,
6664
},
6765
{
6866
field: 'region',
6967
title: 'Region',
7068
width: 'auto',
71-
sort: true,
7269
},
7370
{
7471
field: 'city',

0 commit comments

Comments
 (0)