Skip to content

Add fixed row height to table (with text truncation) #158

Open

Description

@davidhakki

Is there any way to disable word wrapping, and either making it so it has ..., reduce text size or nothing at all.

Activity

  1. philprime commented on Aug 22, 2019

    @philprime
    Member

    Basically limiting the height of a cell an truncating the text?

  2. davidhakki commented on Aug 22, 2019

    @davidhakki
    Author

    Yes i knew there was a word for it, does such options exist presently?

  3. philprime commented on Aug 23, 2019

    @philprime
    Member

    No it does not exist yet, but this sounds like a useful setting, as I am working on an improved table algorithm anyways (#41) therefore I will convert this issue in a feature request

  4. changed the title [-]Is there a way to have hard limits for cells (ie no word wrapping)[/-] [+]Add fixed row height to table (with text truncation)[/+] on Aug 23, 2019
  5. 96kaitlinburke commented on Feb 4, 2020

    @96kaitlinburke

    What's the progress on this? I'm trying to find a way to create a table with square cells, and it doesn't seem like there's currently a way to do this since the cell heights can't be set.

  6. philprime commented on May 19, 2020

    @philprime
    Member

    As of now, the new table logic is pre-release/released in 2.0.0.
    Therefore this is where we could start of implementing this feature

  7. marioradonic commented on Mar 26, 2021

    @marioradonic

    @philprime Is this something you're still interested in? I need something similar like this, so I've started working on a solution, if you want I can create a draft PR with it. Basically, I've added the heights property to the table similar to widths, so that you can set relative row heights for a full-page table.

  8. philprime commented on Mar 29, 2021

    @philprime
    Member

    I am always happy to review PRs :)

  9. theolampert commented on Dec 6, 2021

    @theolampert

    @philprime @marioradonic Did you two make it any further on this feature? Is there an example or branch somewhere I can take a look at? We also need this functionality so I'd be happy to contribute to this feature if either of you pointed me in the right direction.

    Edit: I found a commit here that looks like it marioradonic@19a1379

  10. philprime commented on Dec 7, 2021

    @philprime
    Member

    Hi @theolampert there hasn't been any progress from my side, but still I am happy to review PRs or guide any contribution :)

  11. theolampert commented on Dec 7, 2021

    @theolampert

    @philprime Looking into the problem a bit more today I would actually need to support fixed width and height cells for a specific label printing spec rather than relative heights and widths. I'm thinking that TPPDF might not the right library to try to do this and rather implement the functionality with Core Graphics.

  12. CodeSales commented on Nov 24, 2022

    @CodeSales

    Hello, how is this issue going?

  13. brendand commented on Nov 25, 2022

    @brendand
    Contributor

    I would also love this feature. Could the code from @marioradonic be merged in with master?

  14. philprime commented on Dec 3, 2022

    @philprime
    Member

    I am happy to review any proposed solutions, and even using existing code ideas to implement this. Where can I find the progress of @marioradonic?

  15. brendand commented on Dec 3, 2022

    @brendand
    Contributor

    I am happy to review any proposed solutions, and even using existing code ideas to implement this. Where can I find the progress of @marioradonic?

    I found it a bit higher up in the thread:

    marioradonic@19a1379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions