Class Widget.TableViewCell

TableViewCell Widget.

a widget to be used as the view in a TableView row.

Inherits from:
* Core.Widget

Style Object:
* Style.TableViewCell

Usage:

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

Properties

.accessory () set/get the accessory for the TableViewCell.
.cellLayout () set/get the layout for the TableViewCell.
.cellMargin () set/get the horizontal margin of the TableViewCell.
.contentMargin () set/get the horizontal margin between the content.
.highlight () set/get active highlight.
.imageView () set the Image View on the TableViewCell object.
.textLabel () get a reference to the Text Label object.
.textDetail () get a reference to the Text Detail object.

Class Constants

Widget.TableViewCell.DEFAULT Layout Constant to specify the Default layout.
Widget.TableViewCell.SUBTITLE Layout Constant to specify the Subtitle layout.
Widget.TableViewCell.CHECKMARK Accessory Constant to specify the Checkmark accessory.
Widget.TableViewCell.DETAIL_BUTTON Accessory Constant to specify the Detail Button accessory.
Widget.TableViewCell.DISCLOSURE_INDICATOR Accessory Constant to specify the Disclosure Indicator accessory.
Widget.TableViewCell.NONE Accessory Constant to specify the no accessory.


Properties

.accessory ()
set/get the accessory for the TableViewCell. this is just a convience property to the style object.

Usage:

  • widget.accessory = TableViewCell.DISCLOSURE_INDICATOR
  • print( widget.accessory )
.cellLayout ()
set/get the layout for the TableViewCell. this is just a convience property to the style object.

Usage:

  • widget.cellLayout = TableViewCell.SUBTITLE
  • print( widget.cellLayout )
.cellMargin ()
set/get the horizontal margin of the TableViewCell. this sets both the left and right side. this is just a convience property to the style object.

Usage:

  • widget.cellMargin=10
  • print( widget.cellMargin )
.contentMargin ()
set/get the horizontal margin between the content. this is just a convience property to the style object.

Usage:

  • widget.contentMargin=10
  • print( widget.contentMargin )
.highlight ()
set/get active highlight. specify whether row is highlighted or not. requires boolean.

Usage:

  • widget.highlight = true
  • print( widget.highlight )
.imageView ()
set the Image View on the TableViewCell object. this is a Corona Image. it is the developers responsibility to size the image, recommended to fit within 26x26. Can be any width. The TableViewCell will position the image, ensure proper anchor points.

Usage:

    widget.imageView = display.newImageRect( 'image.jpg', 26, 26 )
.textLabel ()
get a reference to the Text Label object. this is a Widget.Text object.

Usage:

    print( widget.textLabel )
.textDetail ()
get a reference to the Text Detail object. this is a Widget.Text object. the Text Detail is only visible with the SUBTITLE layout.

Usage:

    print( widget.textDetail )

Class Constants

Widget.TableViewCell.DEFAULT
Layout Constant to specify the Default layout. single row of text. this is usually defined in the Style.TableViewCell.
  • HELLO

Usage:

    widget.cellLayout = TableViewCell.DEFAULT
Widget.TableViewCell.SUBTITLE
Layout Constant to specify the Subtitle layout. layout with two rows of text – Label and Detail. this is usually defined in the .
  • HELLO

Usage:

    widget.cellLayout = TableViewCell.SUBTITLE
Widget.TableViewCell.CHECKMARK
Accessory Constant to specify the Checkmark accessory. this is usually defined in the Style.TableViewCell.

Usage:

    widget.accessory = TableViewCell.CHECKMARK
Widget.TableViewCell.DETAIL_BUTTON
Accessory Constant to specify the Detail Button accessory. this is usually defined in the Style.TableViewCell.

Usage:

    widget.accessory = TableViewCell.DETAIL_BUTTON
Widget.TableViewCell.DISCLOSURE_INDICATOR
Accessory Constant to specify the Disclosure Indicator accessory. this is usually defined in the Style.TableViewCell.

Usage:

    widget.accessory = TableViewCell.DISCLOSURE_INDICATOR
Widget.TableViewCell.NONE
Accessory Constant to specify the no accessory. this is usually defined in the Style.TableViewCell.

Usage:

    widget.accessory = TableViewCell.NONE
generated by LDoc 1.4.3 Last updated 2015-05-14 11:55:05