How does the ui.TableViewCell.detail_text_label work? It is always None when I try to make changes to it.
Forum Archive
ui.TableViewCell.detail_text_label
@Sebastian , sorry my memory is not so good.
But if you do one of the following,
cell = ui.TableViewCell('subtitle')
Or
cell = ui.TableViewCell(celltype = 'subtitle')
I can't remember the correct way
This is a bit of missing documentation. But ui.TableViewCell can create 4 different celltypes.
Empty string is default
'subtitle'
'value1'
'value2'
But if the default type is used detail_text_label will be None.
@Sebastian , sorry my memory is not so good.
But if you do one of the following,
cell = ui.TableViewCell('subtitle')
Or
cell = ui.TableViewCell(celltype = 'subtitle')
I can't remember the correct way
This is a bit of missing documentation. But ui.TableViewCell can create 4 different celltypes.
Empty string is default
'subtitle'
'value1'
'value2'
But if the default type is used detail_text_label will be None.
@Phuket2 Thanks! ui.TableViewCell('subtitle') did the trick! 😊👌
@Sebastian 👍, don't forget to try out the other 2 'value1' and 'value2', gives you different cell layouts