No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Expandable text with show/hide functionnality

    Help
    2
    2
    651
    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.
    • M
      monoc44 last edited by

      Hello.

      I would love to find a Quasar component which allows to:

      • truncate some content put into a container (div, p, span) if the size of the content goes over the container’s size or a predefined number of lines
      • display a button that shows the whole content (’show content’) or less (‘show less’)
      • define some sort of decreased opacity as soon as the reader gets closed to the truncated line

      If I am not mistaken, Collapsable allows to display either the full content or nothing.

      Of course, one might argue that it is easily doable through some JS and CSS tricks but I think it is a fairly common pattern used nowadays on websites and would deserve maybe a Quasar component.

      What do you think?

      1 Reply Last reply Reply Quote 0
      • qyloxe
        qyloxe last edited by

        Well, I would love to see an organized page with many such lightweight quasar components. Similar to:

        https://bootsnipp.com/

        Bootsnipp had a tremendous impact on bootstrap popularity. I think almost everybody here has some interesting “components” or snippets of quasar code worth sharing.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post