TableViewCell

class pyto_ui.TableViewCell(style: TableViewCellStyle = TableViewCellStyle.SUBTITLE, text: str = None, detail: str = None, image: Image = None)

A cell contained in a TableView. Can have a title, a subtitle, an image and an accessory view.

For a list of supported style, see Table View Cell Style constants.

property accessory_type: AccessoryType

The type of accessory view placed to the right of the cell. See Accessory Type constants for possible values.

Return type:

Accessory Type.

property content_view: View

(Read Only) The view contained in the cell. Custom views should be added inside it.

Return type:

View

property detail_text_label: Label

(Read Only) The label containing secondary text. May return None for some Table View Cell Style values.

Return type:

Label

property image_view: ImageView

(Read Only) The view containing an image. May return None for some Table View Cell Style values.

Return type:

Image View

property movable: bool

A boolean indicating whether the cell is movable. If set to True, the container TableViewSection object should handle the move.

Return type:

bool

property removable: bool

A boolean indicating the cell is removable. If set to True, the container TableViewSection object should handle the removal.

Return type:

bool

property text_label: Label

(Read Only) The label containing the main text of the cell.

Return type:

Label