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 Styleconstants.- property accessory_type: AccessoryType¶
The type of accessory view placed to the right of the cell. See
Accessory Typeconstants 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
Nonefor someTable View Cell Stylevalues.- Return type:
Label
- property image_view: ImageView¶
(Read Only) The view containing an image. May return
Nonefor someTable View Cell Stylevalues.- Return type:
Image View
- property movable: bool¶
A boolean indicating whether the cell is movable. If set to
True, the containerTableViewSectionobject should handle the move.- Return type:
bool
- property removable: bool¶
A boolean indicating the cell is removable. If set to
True, the containerTableViewSectionobject should handle the removal.- Return type:
bool