cancel
Showing results for 
Search instead for 
Did you mean: 

Control Vs Element

Former Member
0 Kudos

Hi Experts,

Anyone of you please let me know the difference between Control and Element in SAP UI5.

@Thanks in advance

Regards,

Sravya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Elements are parts of the control.

for example..

List is a control and ListItem is its elements.

Elements cannot be used standalone and they dont have their own renderer.control that uses the element does the rendering.

Hope this clears your doubt

Former Member
0 Kudos

Hi Rajeesh,

List is a control and Listitem is its element. How can I check the Elements respective to the particular control.


Is it necessary every control have a element?

@Thanks in advance

Former Member
0 Kudos

No its not necessary to have an element for every control.You can find elements of a control in sapui5 documentation.There you can see some controls have aggregations defined.

For example..List,Table,TileContainer,combobox etc

Former Member
0 Kudos

Thanks Rajeesh, But I was little bit confuse about the Elements in UI5. Do you have any document please share.

Former Member
Former Member
0 Kudos

As per my understanding sap.ui.core.Control  this namespace extends to Elements , here we can check all the elements.

SAPUI5 SDK - Demo Kit