Hello Everyone,
I was recently thinking about adding some new functionality to the NewListing Snippet. To do this I would have to either make duplicate the snippet or modify the NewsListing snippet itself. If I choose to modify it directly then whenever new updates are posted I my existing changes will be overwritten! If I duplicate it then I will not get those new update!
I thought how best to handle this situation in x9.5 and came up with a simple bottom-up extension (inheritance) design. By this I mean it will be possible to create a new Widget that can be made to extend an existing Widget as shown below:
Widget3 <- {extends} Widget2 <- {extends} Widget1
In the above Widget3 will have all the functions of Widget2 which has all the functions of Widget1. Widget3 can be made to overwrite functions and/or events from Widget2, while Widget2 can be made to overwrite functions and/or events from Widget1.
All this is done graphically and dynamically no need to create a class object or to copy up any files to the system. The developer just selects the name of the widget that he or she wants to extend and then add new functions and events if needed.
What do you think?