Thanks.
CODE
var drawingArea = new KONtx.element.Container({
styles: {
width: this.width,
height: 300,
vOffset: this.controls.backButton.outerHeight,
backgroundColor: '#e5f4f9'
}
}).appendTo(this);
this.controls.title = new KONtx.element.Text({
styles: {
color: '#000000',
fontSize: KONtx.utility.scale(14),
fontWeight: 'bold',
hAlign: 'left',
width: this.width - 120,
wrap: true,
vOffset: 10,
hOffset: 110
}
}).appendTo(drawingArea);
this.controls.description = new KONtx.element.Text({
styles: {
color: '#121212',
fontSize: KONtx.utility.scale(12),
hAlign: 'left',
width: this.width-20,
wrap: true,
vOffset: 135,
hOffset: 10
}
}).appendTo(drawingArea);
this.controls.enclosure = new KONtx.element.Image({
styles: {
'hAlign': 'top',
'vAlign': 'left',
width: 95,
height: 120,
backgroundColor: '#EEEEEE',
hOffset: 10,
vOffset: 10
}
}).appendTo(drawingArea);
this.controls.button2 = new KONtx.control.TextButton({
label: 'Check and Post Comments',
styles: {
width: 294,
height: 25,
textAlign: "left",
vOffset: 440
}, //Style information for the Button stored in our 960x540.js file
events: {
//Setup a onSelect Event to handle the button action
onSelect:function(event){
KONtx.application.loadView('view-CommentView', {title: this.title.data,
//description: this.description.data,
enclosure: this.enclosure.src
});
},
}
}).appendTo(this);
},
updateView: function() {
this.controls.title.setText(this.persist.title);
this.controls.description.setText(this.persist.description);
this.controls.enclosure.setSource(this.persist.enclosure);
},
I have the error of this.title not defined. Why does it happen?