Skip to Content
0

[UI5] Is it possible to provide custom functions in a Component?

Mar 05 at 05:59 AM

21

avatar image

Hi Experts,

Now I'm writting a Component, which could be used in a ComponentContainer. My question is, is it possilbe for me to add some custom functions in my component? I hope user who use my Component could invoke the functions with some form like

this.byId('componentContainer').getComponentInstance().customFunction();

Thanks a lot!

Best Regards

Cong

10 |10000 characters needed characters left characters exceeded

Hello Cong Wang

this.byId() gets the DOM element (I think it is the DOM like Jquery). I dont think you can attach a function to it.

What are you trying to do? Runn a function from the component in a controller?

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers