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. etcodev
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 0
    • Groups 0

    etcodev

    @etcodev

    0
    Reputation
    83
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    etcodev Follow

    Latest posts made by etcodev

    • RE: Eval binded data in string

      One more question related to this topic: what about if I want to put this text in a “config” file ? Because in my “config” file, the “user” variable doesn’t exist.
      In my case, I put all the texts in one “plugin” file (/src/plugins/config.js) and if I move the option’s array into the config.js file, I have the error saying that “‘user’ is not defined”.
      I don’t know if plugins are the best solution to centralize all the “text” variables of my app ? But if so, how to include variables in my texts ?

      Thanks

      posted in Help
      E
      etcodev
    • RE: Eval binded data in string

      Wouaw ! Thanks a lot! I don’t know how I could have found the answer by myself on the internet… I think it should be somewhere in the VueJS’s doc but I did not found…

      Best regards

      posted in Help
      E
      etcodev
    • Eval binded data in string

      Hi,

      In a <q-option-group> component I would like to input a variable into labels. But I don’t know how to achieve that.

      Here is an example of what I would like to do:

      <q-option-group
        type="radio"
        v-model="my-v-model"
        :options="[
          {value: '1', label: '{{ user.fullName }} helped me'},
          {value: '2', label: '{{ user.fullName }}  di not help me'},
        ]"
      />
      

      How to evaluate {{ user.fullName }} inside my string ?

      Thanks for helping 😳

      posted in Help
      E
      etcodev
    • RE: [Solved] Accessing this.$socket into a Vuex action.js file ?

      I finally found the solution by myself in this topic

      import Vue from 'vue' // importing Vue
      
      export const saveUserLog = ({ commit, rootState }, data) => {
        data.user = rootState.globalModule.userConnected._id
        commit('addUserLogToTempMemory', data)
        Vue.$socket.emit('saveUserLog', data) // Using Vue
      }
      
      posted in Help
      E
      etcodev
    • [Solved] Accessing this.$socket into a Vuex action.js file ?

      Hi,
      I’m using vue-socket.io-extend to manage websockets.
      I would like to trigger a socket.emit() from within a Vuex actions.js file but this throws an error:
      TypeError: Cannot read property 'emit' of undefined

      Should I have to import anythig?

      Here is my action.js file

      export const saveUserLog = ({ commit, rootState }, data) => {
        data.user = rootState.globalModule.userConnected._id
        commit('addUserLogToTempMemory', data)
        this.$socket.emit('saveUserLog', data) // throws an error
      }
      
      Thanks for help !
      posted in Help
      E
      etcodev
    • RE: 'undefined' error due to missing Platform plugin when using Popover

      @tmladek what about if you try importing like this ?

      import { Platform } from 'quasar'
      

      It’s working for me in a state.js file:

      import { Platform } from 'quasar'
      
      export default {
        platform: Platform
      }
      
      posted in Help
      E
      etcodev