Posted 14 February 2021, 6:16 pm EST
Hello,
i ran into an issue i can’t solve right now.
I am using the designer-components for my application. In a custom dialogue, which I have initialised with GC.Spread.Sheets.Designer.registerTemplate(), in which there are various text editors and i want them to fire an event when they are changed.
For example my Template looks like that:
var template = {
title: dict.templ_T_Ti,
content: [
{
type: "ColumnSet",
children: [
{
type: "Column",
children: [
{
//Typical RangeSelect
type: "RangeSelect",
titel: "Select Range",
bindingPath: "targetRange"
}, {
type: "TextEditor",
bindingPath: "firstColumn"
}, {
type: "TextEditor",
bindingPath: "firstRow"
}, {
type: "TextEditor",
bindingPath: "lastColumn"
}, {
type: "TextEditor",
bindingPath: "lastRow"
}]
}]
}]
}
Whenever the user change the SelectRange the text in the editors should change and reverse. If the editors are changed the RangeSelect should change its range.
Are there any events i can fire? And where do i have to initialize them?
I know there is this part:
GC.Spread.Sheets.Designer.showDialog("translate", dialogOption, (result) => {
if (!result) {
return;
}
}, (error) => {
console.error(error);
}, checkResult);
but whenever i try to do somethin in this nothing happens. Can u maybe help me?
Alternativ:
Is there a radio button option in the custom template. I couldn’t find one in the definition file or in the documentation, apart from the cell types, which don’t really help with pop-ups.
Regards
Maik