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
    1. Home
    2. Rocky
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Groups 0

    Rocky

    @Rocky

    0
    Reputation
    15
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Rocky Follow

    Latest posts made by Rocky

    • RE: Is it possible to have a condition based class on a column in a q-table?

      Just as a follow up, this was my solution:
      <q-td slot=“body-cell-AccountIsLocked” slot-scope=“props” :props=“props” :class="(props.value==‘Locked’) ? ‘td-negative’ : ‘td-positive’">
      <q-icon :class="(props.value==‘Locked’) ? ‘text-negative’ :‘text-positive’" :name="(props.value==‘Locked’) ? ‘lock’ :‘lock_open’" />
      <span :class="(props.value==‘Locked’) ? ‘text-negative’ :‘text-positive’">{{props.value}}</span>
      </q-td>

      Thanks for all the help!..

      posted in Help
      R
      Rocky
    • RE: Is it possible to have a condition based class on a column in a q-table?

      Was hoping something like this was possible:
      {
      name: ‘IsActive’,
      label: ‘Account Is Active’,
      field: ‘IsActive’,
      sortable: true,
      classes: (val) => {
      return (val == true) ? [] : [‘red’];
      }
      },

      posted in Help
      R
      Rocky
    • RE: Is it possible to have a condition based class on a column in a q-table?

      Sure, I have a column “Is Active” in a q-table that has a value of either ‘true’ or ‘false’. I want to apply a class of “alertRed” to the column cell when the value of the cell is ‘false’. I was hoping to do it natively in Quasar in the column definition, as opposed to using something like JQuery.

      posted in Help
      R
      Rocky
    • Is it possible to have a condition based class on a column in a q-table?

      Is it possible to have a condition based class on a column in a q-table? Condition based on the bound content of the column cell.

      posted in Help
      R
      Rocky