I wouldn't know how to give you an example Yishay, I haven't tried to create a "view" component in JS because I don't know where to start. Let's adjourn this discussion. I don't want you to waste your time when I don't even know how to explain what I need.
InspireTree is distributed in 2 separate packages: the main API, Tree, and a DOM rendering engine, TreeDOM (in my other post I called it "view") so that users, who prefer, can implement rendering in the framework of their choice (Angular, React, Vue,.... ROYALE), well, I want to do this "implement a custom rendering in Royale" BUT using the existing TreeDOM JS why modify the existing renderer and not create a new one? Because creating a new TreeDOMRoyale would cost me a lot more work than creating a new "Jewel Tree" control, although I may be wrong. Thanks Yishay, sorry for wasting your time. Hiedra -----Mensaje original----- De: Yishay Weiss <yishayj...@hotmail.com> Enviado el: viernes, 18 de marzo de 2022 7:12 Para: dev@royale.apache.org Asunto: RE: Implementing JS renderer from Royale Maybe if you gave an example of standard JS way versus what you are hoping to do in Royale I could comment. I'm still not clear what an InspireTree view is and how it would be used in Royale. From: Maria Jose Esteve<mailto:mjest...@iest.com> Sent: Thursday, March 17, 2022 4:31 PM To: dev@royale.apache.org<mailto:dev@royale.apache.org> Subject: RE: Implementing JS renderer from Royale Hi Yishay, yes of course,.... Right now I have two cases: - DatePicker, from Mobiscroll - InspireTree JS In the DatePicker I have to customize the calendar header (our DateChooser) to put a series of options (Labels, buttons,..). This component allows me to customize the content of this header "DIV", as a HTML/DOM string. ("<div classname='class1'><a .... ") In this case, I can't do big things, because I have to stick to its component layout and CSS classes. With InspireTree I could create "a view", JS class/component, and connect it to the main tree that would act as a controller. (Similar to our views) In this case, it had occurred to me that, "maybe" I could use referencing a myclass class, as3, after being transpiled to JS; Call me crazy!!!! Hiedra -----Mensaje original----- De: Yishay Weiss <yishayj...@hotmail.com> Enviado el: jueves, 17 de marzo de 2022 13:54 Para: dev@royale.apache.org Asunto: RE: Implementing JS renderer from Royale Do you have a concrete example? From: Maria Jose Esteve<mailto:mjest...@iest.com> Sent: Thursday, March 17, 2022 1:27 PM To: dev@royale.apache.org<mailto:dev@royale.apache.org> Subject: Implementing JS renderer from Royale Hi, I'm asking for guidance... Lately I'm actively using several JS libraries in Royale and I find myself with a recurring need: custom renderers. Depending on how the library is made there is the possibility to define the view of the component or some part of it. I would like to be able to define "the renderer" in Royale, get its DOM and pass it to the library/component? Am I crazy or is this feasible to do with Royale? If it is possible, any example that I can see to guide me? Thx. Hiedra