on 05-07-2014 10:04 AM
Hi all,
I have create a custom component which is actually a VBox which contains 2 sap.m elements: SearchField and Popover.
In my view, i used this:
<core:ComponentContainer id="testSearchField" name="components.SearchFieldPopover"/>
In the controller.js, I needed to control the SearchField element in the "components.SearchFieldPopover".
I was able to do: this.getView().byId("testSearchField")
but I cannot get the individual element (SearchField and Popover) by using:
this.getView().byId("testSearchField").getAggregation()
How do I control the individual element in this case?
Regards,
Chris
this.getView().byId("testSearchField").getComponent().getAggregation("rootControl");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.