For some time now, I have been creating script controls (in VB). I have been inheriting Label and implementing IScriptControl, as that works well for me. Looking at where I am now, it's clear that there is a degree of commonality between many of the controls, so it would make sense to introduce an additional layer of inheritance - my own base control inheriting Label and implementing IScriptControl; and then the actual controls which will inherit from my base control.
Inheritance is usually simple enough, but I'm a bit stuck about:
- how to handle the GetScriptDescriptors and GetScriptReferences across the two layers (overrides, shadows, etc).
- whether I can split the Javasscript into multiple files (effectively common code and specific code) and then they just work together on the client (through $create, etc) as if they were just one file.
Pointers to examples and words of wisdom equally welcome.
View Complete Post