Adding ask editor variable type
Posted: Tue Jul 20, 2021 7:40 pm
Hi, i'm working on a custom frameworks and I'm trying to use a ChangeAttributeOperation, and prompt the value to the end user.
The user should be able to change the text size and color of the current element, so this will output a color and size attributes.
This is actually working using
${ask('Color', editable_combobox, ('red':'Red';'blue':'Blue';'green':'Green'), '')}
and
${ask('Size')}
But this is a bit primitive, as the user is able to input whatever he wants.
Is there a way to customize the ask function or can I create a new one, to limit the input to numbers with min and max value for the size, and display a java color picker for the color ?
Thank you.
The user should be able to change the text size and color of the current element, so this will output a color and size attributes.
This is actually working using
${ask('Color', editable_combobox, ('red':'Red';'blue':'Blue';'green':'Green'), '')}
and
${ask('Size')}
But this is a bit primitive, as the user is able to input whatever he wants.
Is there a way to customize the ask function or can I create a new one, to limit the input to numbers with min and max value for the size, and display a java color picker for the color ?
Thank you.