 
- SAP UI5 - Home
- SAP UI5 - Overview
- SAP UI5 - Architecture
- SAP UI5 - Key Components
- SAP UI5 - Control Libraries
- SAP UI5 - Development Kit
- SAP UI5 - MVC Concept
- SAP UI5 - Views
- SAP UI5 - Developer Studio
- SAP UI5 - Creating a UI5 Project
- SAP UI5 - Controls
- SAP UI5 - Data binding
- SAP UI5 - Design Patterns
- SAP UI5 - Modularization
- SAP UI5 - Localization
- SAP UI5 - Notepad Controls
- SAP UI5 - Extending Applications
- SAP UI5 - Theming
- SAP UI5 - Mobile
- Creating a Project in Web IDE
SAP UI5 - Controls
There are different types of UI controls that you can use while developing UI5 applications. These controls allow you to add a button, table, images, layout, combo box, and various other controls in UI5 application.
Common control types include −
- Simple Controls
- Complex Controls
- UX3 Controls
- Dialogs
- Layout
Image Control
Var image = new sap.ui.commons.Image(); Image.setSrc(Image1.gif); Image.setAlt(alternat.text);
Combo Box
You can use a combo box to provide predefined entries.
Properties − items, selectedKey
Var oComboBox2 = new sap.ui.commons.ComboBox (ComboBox,{ Items:{path:/data, Template:oItemTemplate, filters:[oFilter]}, Change: function(oEvent){ Sap.ui.getCore(). byId(field).setValue( oEvent.oSource.getSelectedKey()); } });
Simple Button Control
Use attachPresss assign event handler for a push action.
Var oButton = new sap.ui.commons.Button ({text : Click,
   Press: oController.update
});
Autocomplete Control
To autocomplete the entered value.
Var uiElement = new sap.ui.commons.AutoComplete({
   Tooltip: Enter the product,
   maxPopupItems: 4
});
For (var i = 0; i<aData.lenght; i++){
   uiElement.addItem(new sap.ui.core.ListItem(
      {text: aData[i].name}));
}
Table Control Box
It is derived from sap.ui.table and each table contains columns.
Var oTable = new sap.ui.table.Table({
   Columns: [
      New sap.ui.table.Column({
         Label: new sap.ui.commons.lable({ text: First Column}),
         Template: new sap.ui.commons.TextView({ text: {Firstcolumn} }),
         Width: 120px
      })
   Advertisements
                    