SAPUI5 Tutorials | SAPUI5 Project | Extend SAPUI5 Control | JS Libraries | Extend Method

preview_player
Показать описание
Computer science: SAPUI5 Tutorial
SAPUI5 Tutorials | SAPUI5 Project | Extend SAPUI5 Control | JS Libraries | Extend Method

SAPUI5 Project
Extending SAPUI5 Controls
Sometimes SAPUI5 controls does not support a specific use case you run into. For that, an extensibility functionality is provided for all of SAPUI5’s controls.

Extending a control or even creating a new one is a simple task, which will be explained in this step-by-step post. This post will extend the sap.m.Select control, creating an option to add new items to it at runtime. It is divided in the following tasks:

1.Create a javascript file to extend the control
2.Add new properties and events to control
3.Check standard control source code in OpenUI5
4.Extend standard control’s function onBeforeRendering + init
5.Create function to handle new option
6.Extend standard control’s function onSelectionChange
7.Add control to the view and test it

All Rights Reserved..
Рекомендации по теме
Комментарии
Автор

Will you please tell me how to use external libraries like momentjs in openui5 ?

FuelForDreamz
join shbcf.ru