Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-677] Can't place TextArea in a TableView (Grouped Section) row

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, tableview, text, widget
ReporterRyan G
AssigneeReggie Seagraves
Created2011-04-15T02:34:13.000+0000
Updated2011-04-17T01:53:53.000+0000

Description

You can't click on it. No keyboard show up.


function addtextarea()
{
    var row = Ti.UI.createTableViewRow();
    var note = Titanium.UI.createTextArea({
        //color:'#336699',
        height:35,
        top:5,
        height: 100,
        width: 290,
        bottom: 5,
        hintText:'Put something interesting about this new person...',
        borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE
    }); 
    row.add(note);
    row.height = 'auto';
    row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;
    row.className = 'control';
    return row;
}

// create table view data object
var data = [];

data[0] = Ti.UI.createTableViewSection({headerTitle:'Note'});
data[1] = addtextarea();

var tableView = Ti.UI.createTableView({
    data:data,  
    style: Titanium.UI.iPhone.TableViewStyle.GROUPED
});

Comments

  1. Ryan G 2011-04-15

    "value:" is required in options for Text Areas. Solved that problem.

    Resolved

  2. Ryan G 2011-04-15

    Can't get the value of object in a row.

       
       save.addEventListener('click', function()
       {
           Ti.API.info("Adding");
           //alert('Added successfully!');
           //win.close();
           var noteValue = note.value;
           Ti.API.info("Note: "+noteValue);
       });
       
  3. Stephen Tramer 2011-04-15

    Resolved at some point.

  4. Stephen Tramer 2011-04-15

    Forgot to tag.

JSON Source