i have got an textField :
var favInput = new sap.ui.commons.TextField("tfFavorites",{
value : 'Give a name to the favorite....',
imeMode: sap.ui.core.ImeMode.Active,
editable: true });
and i have got an button :
var saveFavorButton = new sap.ui.commons.Button({ text : "Create new favorite" });
on a press on the button, i want to build a "createNewFavorite" function which will create a link with the name of the user text input. as example :
var myFavorites1 = new sap.ui.commons.Link("myfav1",{
text: "my favorite 1",
});
how to create "createNewFavorite" function? many thanks!