Custom Widget Names (Field Type) and ProfoundUI Visual Designer
Posted: Wed Apr 29, 2015 5:57 am
Hi All,
I have a custom widget with the name "info button", which works perfectly. I was having some problems creating a new widget, so I copied the working .js to anotherinfobutton.js and changed it's name property in pui.widgets.add to "another info button". This also works fine.
However, when I attempt to name a widget "todo list", I receive a "Widget name is invalid" alert when I try to put it on the design surface. I get the same message on another widget called "user messages". All I've done is change the name property from "another info button" to "todo list".
What's interesting is if I put a working "info button" on the design surface and look at the available field types, both "user messages" and "todo list" are listed. I just can't put them on the design surface without getting the "Widget name is invalid" alert.
Works:
// Define Base widget
pui.widgets.add({
name: "info button",
newId: "standardInfoButton",
menuName: "Information Button",
Doesn't work:
// Define Base widget
pui.widgets.add({
name: "todo button",
newId: "standardInfoButton",
menuName: "Information Button",
Has anybody else experienced this behaviour?
Many thanks,
Mark
I have a custom widget with the name "info button", which works perfectly. I was having some problems creating a new widget, so I copied the working .js to anotherinfobutton.js and changed it's name property in pui.widgets.add to "another info button". This also works fine.
However, when I attempt to name a widget "todo list", I receive a "Widget name is invalid" alert when I try to put it on the design surface. I get the same message on another widget called "user messages". All I've done is change the name property from "another info button" to "todo list".
What's interesting is if I put a working "info button" on the design surface and look at the available field types, both "user messages" and "todo list" are listed. I just can't put them on the design surface without getting the "Widget name is invalid" alert.
Works:
// Define Base widget
pui.widgets.add({
name: "info button",
newId: "standardInfoButton",
menuName: "Information Button",
Doesn't work:
// Define Base widget
pui.widgets.add({
name: "todo button",
newId: "standardInfoButton",
menuName: "Information Button",
Has anybody else experienced this behaviour?
Many thanks,
Mark