diff --git a/docs/nodes/widgets/ui-table.md b/docs/nodes/widgets/ui-table.md index 7550ca80..3142241f 100644 --- a/docs/nodes/widgets/ui-table.md +++ b/docs/nodes/widgets/ui-table.md @@ -3,7 +3,7 @@ description: Display and manage complex datasets with ease using the ui-table wi props: Group: Defines which group of the UI Dashboard this widget will render in. Size: Controls the width of the button with respect to the parent group. Maximum value is the width of the group. - Label: The text shown within the button. + Label: The text shown above the table, labelling what the table is showing. Max Rows: Defines the maximum number of data-rows to render in the table. Excess rows will be available through pagination control. Set to "0" for no pagination. Breakpoint: Controls when a table will render, instead, as a card, with each column from a row rendering as a row in a larger, contain a row, for a single entry.The breakpoint is measured based on the width of the table, not the width of the screen. Selection: Provides three options for table interaction - "None", "Click" and "Checkbox" diff --git a/nodes/widgets/locales/en-US/ui_table.json b/nodes/widgets/locales/en-US/ui_table.json index bf2978df..9ca04b9a 100644 --- a/nodes/widgets/locales/en-US/ui_table.json +++ b/nodes/widgets/locales/en-US/ui_table.json @@ -9,6 +9,7 @@ "key": "key:", "value": "Value", "label": "Label", + "optionalTableTitle": "optional label", "type": "Type", "width": "Width", "align": "Align", diff --git a/nodes/widgets/ui_table.html b/nodes/widgets/ui_table.html index 055a2bd9..570d1a9c 100644 --- a/nodes/widgets/ui_table.html +++ b/nodes/widgets/ui_table.html @@ -65,7 +65,7 @@ defaults: { group: { type: 'ui-group', required: true }, name: { value: '' }, - label: { value: 'text' }, + label: { value: '' }, order: { value: 0 }, width: { value: 0, @@ -97,7 +97,7 @@ icon: 'font-awesome/fa-table', paletteLabel: 'table', label: function () { - return this.name || 'table' + return this.name || this.label || 'table' }, oneditprepare: function () { // handle backward compatibility @@ -332,6 +332,10 @@ +