Skip to Content

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

Mar 05 at 05:59 AM


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


Thanks a lot!

Best Regards


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?

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

0 Answers