Hello everyone,
I have already created a sidebar view, and when I press the back button, I don't want to save this view in history stack, what should I do?
For example, $API.perfectUser.user.user_login is a variable global.
CODEBOX
var bottom1 = new KONtx.control.TextButton({
label: 'username:' + $API.perfectUser.user.user_login,
styles: {
vOffset: text_button_header.outerHeight
},
textStyles: {
color: '#FFFFFF',
fontSize: KONtx.utility.scale(18),
paddingLeft: KONtx.utility.scale(5),
hAlign: 'center',
vAlign: 'center'
},
events: {
onSelect: function(event){
var dialog = new KONtx.dialogs.Alert({
title: "Email",
message: $API.perfectUser.user.user_login,
buttons: [{
label: "back"
}]
});
dialog.show();
}
}
}).appendTo(this);
When pressing back button and $API.perfectUser.user.user_login changed, and I want to reload this view, but the data in "label" doesn't change, because the view doesn't refresh
I tried
CODEBOX
loadview("id",null,true);
but it seems that doesn't work
Thanks for helping!
Yinan