Skip to Content
avatar image
Former Member

Extend ui5 control with method interface

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 25, 2015 at 09:31 PM

    Hi Experts,

    Is it possible via some kind of trick?

    Best Regards,

    Joerg B

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Dennis Seah

      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