When my button is pressed, I want to get in my controller, access my button and change the text to new text
for example.
The onClick
event works fine. But I stuck at accessing the view element (myButton
) from the controller. I know there are threads about this topic, but I couldn't apply any of them. sap.ui.getCore().byId()
for example didn't work for some reason.
Does anyone got some hints or detailed information about accessing view elements from the controller?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…