IComponentBaseOption ID

Posted by: m.holland-moritz on 2 March 2021, 2:51 am EST

  • Posted 2 March 2021, 2:51 am EST

    Dear Team,

    I have a question about the parameter of the IComponentBaseOption interface. I assume that this parameter should assign an ID to the HTML element. However, I can’t find this ID on the web page no matter what I write there.

    I am trying to use it to assign an ID to the elements in a custom dialogue:

    var testTemplate = {
        title: dict.templ_T_Ti,
        content: [
            {
                type: "ColumnSet",
                children: [
                    {
                        type: "Column",
                        children: [
                            {
                                type: "TextEditor",
                                bindingPath: "firstColumn",
    			    id: "teFirstCol"
                            }, {
                                type: "TextEditor",
                                bindingPath: "firstRow",
    			    id: "teFirstRow"
                            }, {
                                type: "TextEditor",
                                bindingPath: "lastColumn",
    			    id: "teLastCol"
                            }, {
                                type: "TextEditor",
                                bindingPath: "lastRow",
    			    id: "teLastRow"
                            }]
                    }]
            }]
    }
    GC.Spread.Sheets.Designer.registerTemplate("assignRange", testTemplate);
    

    I want to assign the text editors(te) with their respective editor function as ID. (for example FirstCol)

    But for the HTML Element it doesn’t do that.

    I hope u can help.

    Regards,

    Maik

  • Posted 3 March 2021, 4:43 am EST

    Hi Maik,

    The id property is for storing the component by Id internally, it is not supposed to add the id attribute on the DOM element. Could you please further explain your requirement/use case that why you need this functionality?

    Regards

    Sharad

  • Posted 3 March 2021, 5:21 am EST

    Hi Sharad,

    I want to add some Events on mouseover. The event should show a informationtext, with the functionality of this element.

    Regards

    Maik

  • Posted 4 March 2021, 2:21 am EST

    Hi Maik,

    Adding event on the custom template element is currently not supported but it is already in our backlog. We will update you on the development of this feature. The internal ID for this issue will be SJS-7619.

    Regards

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels