Skip to content

Commit 0e65d21

Browse files
docs(docker): add widget options to sort containers (#468)
1 parent 7b2bafe commit 0e65d21

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

docs/widgets/docker-containers/index.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,31 @@ export const dockerContainersWidget: WidgetDefinition = {
66
name: 'Docker stats',
77
description: 'Stats of your containers',
88
path: '../../widgets/docker-containers',
9-
configuration: { items: [] },
9+
configuration: {
10+
items: [
11+
{
12+
name: 'Enable items sorting',
13+
description: 'Allows to sort containers by clicking on the column headers',
14+
values: { type: 'boolean' },
15+
defaultValue: 'No',
16+
},
17+
{
18+
name: 'Column used for sorting by default',
19+
description:
20+
'Select which column to use for sorting the containers when the widget is loaded',
21+
values: {
22+
type: 'select',
23+
options: ['Name', 'State', 'CPU usage', 'Memory usage'],
24+
},
25+
defaultValue: 'Name',
26+
},
27+
{
28+
name: 'Invert sorting',
29+
description:
30+
'Invert the sorting order (ascending / descending) for the default sorting column',
31+
values: { type: 'boolean' },
32+
defaultValue: 'No',
33+
},
34+
],
35+
},
1036
};

0 commit comments

Comments
 (0)