pec1985/ExpandableTextArea — Issue #43: addLabel in recent version?
Author: caspahouzer
Created: 2011-10-25 16:33:08+00:00
State: open

After successful compiling the newest version of Ti.smsview, everthing looks fine. but..

I tried to use the addLabel function. The response is:

Result of expression 'smsView.addLabel' [undefined] is not a function.

Here is some code:

```javascript
var smsView = Ti.SMSView.createView({
//maxLines:6,	// <--- Defaults to 4
//minLines:2,	// <--- Defaults to 1
backgroundColor : config.backgroundColor, // <--- Defaults to #dae1eb
assets : 'assets', // <--- Defaults to nothing, smsview.bundle can be places in the Resources dir
// sendColor: 'Green',	// <--- Defaults to "Green"
recieveColor : 'Gray', // <--- Defaults to "White"
// selectedColor: 'Blue',	// <--- Defaults to "Blue"
// editable: true,	// <--- Defaults to true, do no change it
// animated: false,	// <--- Defaults to true
// buttonTitle:L('send'),	// <--- Defaults to "Send"
// font: { fontSize: 12 ... },	// <--- Defaults to... can't remember
// autocorrect: false,	// <--- Defaults to true
// textAlignment: 'left',	// <--- Defaults to left
// textColor: 'blue',	// <--- Defaults to "black"
returnType : Ti.SMSView.RETURNKEY_DONE // <---- Defaults to Ti.SMSView.RETURNKEY_DEFAULT
// camButton : true	// <--- Defaults to false
});

smsView.addEventListener('buttonClicked', function(e) {
smsView.addLabel(new Date()+'');
smsView.sendMessage(e.value);
});
```