Placeholder text instead of label
Posted 22 September 2010 - 06:54 PM
I would like to request an option that would set the placeholder property of a text field instead of the cell label and make the text field the full width of the cell.
Posted 23 September 2010 - 03:09 AM
If you don't set a label for an SCTextField cell, Sensible TableView will automatically have the text field take the whole cell width. Is that what you need?
Posted 23 September 2010 - 05:03 AM
[myclassdef propertyDefinitionWithName:@"firstName"].attributes = [SCTextFieldAttributes attributesWithPlaceholder:@"enter your first name"];
If that wasn't possible I was hoping for something like this:
SCClassDefinition *myclassdef = [[SCClassDefinition alloc] initWithClass:[myclass class] withPropertyNames:[NSArray arrayWithObjects:@"firstName", /*etc.,*/ nil] withPropertyTitles:[NSArray arrayWithObjects:@"enter your first name", /*...,*/ nil] usePropertyTitleForPlaceholderTextInsteadOfLabel:YES];
Posted 23 September 2010 - 06:02 AM
We should probably implement this as a BOOL property of SCTextFieldAttributes and call it "displayTitleAsPlaceholder". What do you think?
Posted 23 September 2010 - 07:35 AM
However, I'm okay with using attributes.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users