Class Style.TextField

TextField Style Class.

a style object for a TextField View.

Inherits from:
* Core.Style

Usage:

     dUI = require 'dmc_ui'
     widget = dUI.newTextFieldStyle()

Properties

.align () [style] set/get Style value for Widget text alignment.
.marginX () [style] set/get Style value for Widget X-axis margin.
.marginY () [style] set/get Style value for Widget Y-axis margin.

Style-Helpers

.hintFont () [style] set/get Style value for Widget's Hint font.
.hintFontSize () [style] set/get Style value for Widget's Hint font size.
.hintTextColor () [style] set/get Style value for Widget's Hint text color.
.displayFont () [style] set/get Style value for Widget's Display font.
.displayFontSize () [style] set/get Style value for Widget's Display font size.
.displayTextColor () [style] set/get Style value for Widget's Display text color.


Properties

.align ()
[style] set/get Style value for Widget text alignment. values are 'left', 'center', 'right'

Usage:

  • style.align = 'center'
  • print( style.align )
.marginX ()
[style] set/get Style value for Widget X-axis margin.

Usage:

  • style.marginX = 10
  • print( style.marginX )
.marginY ()
[style] set/get Style value for Widget Y-axis margin.

Usage:

  • style.marginY = 10
  • print( style.marginY )

Style-Helpers

.hintFont ()
[style] set/get Style value for Widget's Hint font.

Usage:

  • style.hintFont = 'helvetica-bold'
  • print( style.hintFont )
.hintFontSize ()
[style] set/get Style value for Widget's Hint font size.

Usage:

  • style.hintFontSize = 12
  • print( style.hintFontSize )
.hintTextColor ()
[style] set/get Style value for Widget's Hint text color.

Usage:

  • style.hintTextColor = {1,0.5,1,0.25}
  • print( style.hintTextColor )
.displayFont ()
[style] set/get Style value for Widget's Display font.

Usage:

  • style.displayFont = 'helvetica-bold'
  • print( style.displayFont )
.displayFontSize ()
[style] set/get Style value for Widget's Display font size.

Usage:

  • style.displayFontSize = 12
  • print( style.displayFontSize )
.displayTextColor ()
[style] set/get Style value for Widget's Display text color.

Usage:

  • style.displayTextColor = {1,0.5,1,0.25}
  • print( style.displayTextColor )
generated by LDoc 1.4.3 Last updated 2015-05-14 11:55:05