omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    ui.TableViewCell.detail_text_label

    Pythonista
    ui.tableview question
    2
    5
    4087
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sebastian
      Sebastian last edited by

      How does the ui.TableViewCell.detail_text_label work? It is always None when I try to make changes to it.

      Phuket2 1 Reply Last reply Reply Quote 1
      • Phuket2
        Phuket2 last edited by

        @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.

        1 Reply Last reply Reply Quote 1
        • Phuket2
          Phuket2 @Sebastian last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Sebastian
            Sebastian last edited by

            @Phuket2 Thanks! ui.TableViewCell('subtitle') did the trick! 😊👌

            Phuket2 1 Reply Last reply Reply Quote 1
            • Phuket2
              Phuket2 @Sebastian last edited by Phuket2

              @Sebastian 👍, don't forget to try out the other 2 'value1' and 'value2', gives you different cell layouts

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors