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

    HTML for field in columns[..] of QTable

    Framework
    1
    2
    302
    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
      maxxiris last edited by

      I am playing with QTable and columns[…] and want to format field with html tag. However I fail here

        columns: [
          { name: 'name',  label: 'Name', align: 'center', sortable: true,
          field: row => (`${row.name} <b>abcd </b>`),  
          format: val => `<b> ${val} </b>`
          },
      

      ]

      I try to embed html code in field and format attribute. However in browser html code is not run, still print out <b> tag

      So could we do this in columns[…] (I know q-td could do it)

      Tks for any help

      1 Reply Last reply Reply Quote 0
      • M
        maxxiris last edited by maxxiris

        The reason I am asking because of the conflicting in using selection="multiple" :selected.sync="selected"

        If we use above attribute, QTree will generate checkbox in first column. However if we use q-td, checbox column in tbody will disappear. This create a conflict when we have header with checkbox but not row.
        `

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