Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

List of Constant values


why there is no documentation regarding properties and constant like INPUT_BUTTONMODE_ONFOCUS and verticalAlign of TextField?

I want to centrally aligned text and while setting it value to 1 it gives exception

— asked August 5th 2010 by Adnan Ahmad
  • anroid
  • textfield
  • vertical
  • verticalalign

1 Answer

  • I'm pretty sure I see those constants listed in the Docs, check here for most UI related constants for example. Or did I misunderstand your question?

    For vertically aligning text in TextField, use this:

    textField.verticalAlign = 'top';
    textField.verticalAlign = 'middle';
    textField.verticalAlign = 'bottom';
    — answered August 5th 2010 by Goran Skledar
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.