Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafoscili committed Feb 21, 2022
1 parent 094d50b commit 10e370a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class KupButtonList {
* Props of the sub-components.
* @default []
*/
@Prop() data: KupButtonListNode[] = [];
@Prop({ mutable: true }) data: KupButtonListNode[] = [];
/**
* When set to true, the sub-components are disabled.
* @default false
Expand Down
12 changes: 8 additions & 4 deletions packages/ketchup/src/components/kup-magic-box/kup-magic-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,14 @@ export class KupMagicBox {
this.kupManager.objects.isNumber(col.obj)) ||
props['axis'] !== null
) {
props['series'].push({
code: col.name,
decode: col.title,
});
if (this.display === MagicBoxDisplay.CHART) {
props['series'].push({
code: col.name,
decode: col.title,
});
} else {
props['series'].push(col.name);
}
} else {
props['axis'] = col.name;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/ketchup/src/components/kup-tree/kup-tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class KupTree {
/**
* The columns of the tree when tree visualization is active.
*/
@Prop() columns?: KupDataColumn[];
@Prop({ mutable: true }) columns?: KupDataColumn[];
/**
* Custom style of the component.
* @default ""
Expand All @@ -216,7 +216,7 @@ export class KupTree {
/**
* The json data used to populate the tree view: the basic, always visible tree nodes.
*/
@Prop() data: KupTreeNode[] = [];
@Prop({ mutable: true }) data: KupTreeNode[] = [];
/**
* The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
*/
Expand Down Expand Up @@ -298,7 +298,7 @@ export class KupTree {
/**
* Shows the tree data as a table.
*/
@Prop() showColumns: boolean = false;
@Prop({ mutable: true }) showColumns: boolean = false;
/**
* When set to true enables the column filters.
*/
Expand All @@ -311,7 +311,7 @@ export class KupTree {
* Flag: shows the header of the tree when the tree is displayed as a table.
* @see showColumns
*/
@Prop() showHeader: boolean = false;
@Prop({ mutable: true }) showHeader: boolean = false;
/**
* Shows the icons of the nodes.
*/
Expand Down

0 comments on commit 10e370a

Please sign in to comment.