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

    Title on QImg

    Framework
    2
    3
    335
    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.
    • digiproduct
      digiproduct last edited by

      On a QImg, I can see that we can set the ALT attribute for the image.

      Is there anyway to also set the TITLE attribute for the image?

      I know I could use a normal IMG tag rather than a QImg to get it … but I’d prefer to use a QImg so that I can take advantage of the loading spinner and placeholder …

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        QImg does not render an <img> tag under the covers, so adding such props does not have any effect. The alt property is applied as aria-label attribute along with role="img" (accessibility work). QImg uses a <div> with backgroundImage CSS in order to be able to supply all its features.

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

          @rstoenescu Thanks for clarifying why it’s not there … I understand.

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