on 10-25-2015 11:05 AM
HI
I need to extend SAPUI5 control and I've the following example (Thanks to Dennis!),Currently there is extend for
Autocomplete which is working fine but now I need that that the new control will also have the ability to extend method which he getting from some additional interface control(lets say I've one interface control with method's and I need that all my controls will extend it like the control in the example)
e.g. to return if isRoot is true or false ,How it can be done via UI5 ?
JS Bin - Collaborative JavaScript Debugging
p.s. I found this getInterface() there is a way to use that this can help?
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.base.Object
Thanks in advance:)
Joerg
Hi Experts,
Is it possible via some kind of trick?
Best Regards,
Joerg B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Dennis,
In your example you put it on the prototype so every UI5 control have it this is not exactly what I refer to.
I need that as the following bin the method control itself do the implementation (AC control)
and I dont need that all the UI5 controls have it just couple of my controls ,like an interface which some controls should implement ...there is a trick in UI5 that can achieve some of this behavior ?
Thanks a lot!
Joerg
HI Dennis,
Thanks again for your replay
You answer is based that you understand the requirement ? I ask it since maybe I didn't explain my self well...
I need to provide method/s to several controls (new UI5 controls) that they should implement (like interface mechanism is java, c++ etc )
Do you think that this can be achieved in some way in JS via UI5 ?
Best Regards and Thanks for your time!!!
Joerg
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.