Skip to content

Commit

Permalink
Merge pull request #1926 from apuliasoft/inputpanel
Browse files Browse the repository at this point in the history
bugifx: updated input panel showcase
  • Loading branch information
lucafoscili authored Jun 7, 2024
2 parents 6cce972 + 41404ff commit 52b6843
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export default {
try: 'field',
},
{
prop: 'handleEventsCallbacks',
description: 'Sets the callbacks functions on ketchup events.',
type: 'InputPanelEventsCallback',
isArray: true,
default: '[]',
try: 'json',
prop: 'optionsHandler',
description:
'Sets the callback function to call FUN from inside the input panel. Could return an object to be associated to field options.',
type: 'string',
default: 'null',
try: 'field',
},
],
};
Expand Down Expand Up @@ -250,6 +250,9 @@ function createComp() {
],
};
comp.id = 'demo-component';
comp.submitCb = (e) => console.log('Input Panel submit', e);
comp.optionsHandler = (fun, inputValue, currentState) =>
console.log('Option handler event', { fun, inputValue, currentState });
return comp;
}
Expand Down
7 changes: 7 additions & 0 deletions packages/ketchup-showcase/src/views/templates/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,13 @@ const demoTypes: DemoTypeJson = {
},
type: DemoTypeFeature.ENUM,
},
KupInputPanelData: {
keys: {
columns: 'KupDataColumn[]',
rows: 'KupInputPanelRow[]',
},
type: DemoTypeFeature.ENUM,
},
KupListNode: {
keys: {
id: 'string',
Expand Down

0 comments on commit 52b6843

Please sign in to comment.