Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

dijit.byNode() inside custom widget's JS

$
0
0

Hi all,

I'm sorry in advance for using incorrect or confusing terms, but it's because I'm noob and hopefuly will make a point.

I have a property which uses custom EditorDescriptor and it uses appropriate JS file (widget). And this JS file (widget) is responsible only for the logic regarding that only property. As I understand EditorDescriptors are applied to single property and UIDescriptors are applied to whole form (bunch of properties)...

Is it considerable a normal practise to target other widgets inside this EditorDescriptor's widget in order to update targeted widget's value?

// I use this in an EditorDescriptor of page property which is under "Tab 1", to target property which is in "Tab 2" to update it
var widgetWhichIsLocatedOnAnotherTab = dijit.byNode(document.querySelector('.dijit.epi-checkBoxList'));

Viewing all articles
Browse latest Browse all 9076

Trending Articles