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. metalsadman
    • Profile
    • Following 0
    • Followers 16
    • Topics 3
    • Posts 1572
    • Best 284
    • Groups 1

    metalsadman

    @metalsadman

    354
    Reputation
    1037
    Profile views
    1572
    Posts
    16
    Followers
    0
    Following
    Joined Last Online

    metalsadman Follow
    Admin

    Best posts made by metalsadman

    • RE: Adding a button to a cell within a datatable

      @karnjeet https://codepen.io/metalsadman/pen/ZgKexK

      Oct. 2020 update: added complex example with updating of values.

      posted in Framework
      metalsadman
      metalsadman
    • RE: Drawer with splitter?

      @rubs here, also fixed some quirks when q-page-container is adding padding left same as q-splitter’s left width https://codepen.io/metalsadman/pen/YzPgKML

      posted in Help
      metalsadman
      metalsadman
    • RE: Quasar v1.5.0 released!

      awesome, thx for your hardwork.

      posted in Announcements
      metalsadman
      metalsadman
    • RE: How to make vuex store persist

      @PeterQF Its just a placeholder … means insert your code or whatever there, in this case an array of string paths ie paths : ['somepath']. https://github.com/robinvdvleuten/vuex-persistedstate/blob/master/README.md

      posted in [v1] App Extensions
      metalsadman
      metalsadman
    • RE: QTable disable pagination

      @venkyvb
      Try something like this.

       <q-table
          :data="tableData"
          :columns="columns"
          row-key="name"
          :rows-per-page-options="[0]" 
          :pagination.sync="pagination"
          hide-header
          hide-bottom
        />
      
      data () {
        return {
          pagination: {
               page: 1,    
               rowsPerPage: 0 // 0 means all rows    
           }
      }
      
      posted in Help
      metalsadman
      metalsadman
    • RE: How to offer an input for only positive numbers without validation?

      @patryckx check my sandbox currency formatter, you can replace the characters for ., prolly tweak the regular expression too. Its at src/components/base… https://codesandbox.io/s/0ybb3 sry cant check atm in mobile. mosuforge also has one using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat

      posted in Useful Tips (NEW)
      metalsadman
      metalsadman
    • RE: Store is no longer accessible in router.

      you could’ve just un-commented the line.
      export default function (/* { store, ssrContext } */) {
      to
      export default function ({ store }) {
      also comment the line
      import store from '../store'
      since like doing it with quasar plugins, the store is also accessible in router/index.js.

      posted in Framework
      metalsadman
      metalsadman
    • RE: [V1][Feature request] Make badge compatible with icon component

      @jvmonjo can be achieved tho https://codepen.io/metalsadman/pen/YbXEjJ.

      posted in Framework
      metalsadman
      metalsadman
    • RE: Store is no longer accessible in router.

      @jacklin10 be sure that you passed the store as an arg at your router/index.js’s export default function to access the store You don’t need to import your store.
      Like I stated on my older reply in this thread https://forum.quasar-framework.org/topic/2825/store-is-no-longer-accessible-in-router/6… which is just above your post.
      ie.

      export default function({ store }) { // <<<<<<-- this is what you're looking for
        const Router = new VueRouter({
          scrollBehavior: () => ({ x: 0, y: 0 }),
          routes,
          mode: process.env.VUE_ROUTER_MODE,
          base: process.env.VUE_ROUTER_BASE
        })
      
        Router.beforeEach((to, from, next) => {
            ...
            console.log('LoggedIn: ', store.getters['auth/loggedIn'])
            ....
        })
      
        return Router
      }
      
      posted in Framework
      metalsadman
      metalsadman
    • RE: Access $router outside vue

      @reath follow what @rstoenescu suggested, then import that boot file in your vuex.
      edit. something like

      // boot/router.js
      let routerInstance = void 0
      export default async ({ router }) => {
        // something to do
        routerInstance = router
      }
      export { routerInstance }
      
      // store/somemodule/action.js
      import { routerInstance } from 'boot/router'
      export const someAction = (...) => {
        ... 
        routerInstance.push('/some-route')
      }
      
      posted in Framework
      metalsadman
      metalsadman

    Latest posts made by metalsadman

    • RE: JWT Cookies or Local Storage for Mobile Apps

      @susansiow yeah, there should be a plugin out there in the cordova wild. I suppose you are looking for some kind of persistent login, then there also plugins that provide api where you can save your jwt in the app’s shared preference.

      posted in Framework
      metalsadman
      metalsadman
    • RE: JWT Cookies or Local Storage for Mobile Apps

      @susansiow just take note that IOS may clear the local storage on low memory without notice.

      posted in Framework
      metalsadman
      metalsadman
    • RE: JWT Cookies or Local Storage for Mobile Apps

      @susansiow it’s relatively safe to use local storage in mobile apps. furthermore you can use something like https://github.com/softvar/secure-ls to encrypt your localstorage data. IOS clears the local storage on low memory without notice tho, so take also that in consideration.

      posted in Framework
      metalsadman
      metalsadman
    • RE: quasar v2 vuex

      @pospi try using the object form ie.

      ...mapGetters({
        searchForm: 'client/searchForm', 
        resultForm: 'client/resultForm'
      })
      ...
      
      posted in Help
      metalsadman
      metalsadman
    • RE: how to disable tab-bar on certain pages

      @kaizoku2508 https://router.vuejs.org/guide/essentials/named-views.html#nested-named-views

      posted in Help
      metalsadman
      metalsadman
    • RE: Q-BTN click. How to retrive properties in js?

      @jj try evt.target.$el.name in your click handler.

      posted in Framework
      metalsadman
      metalsadman
    • RE: QSelect yields label on native form submit

      @szabiaura provide more info, a snippet or a codepen.

      posted in Help
      metalsadman
      metalsadman
    • RE: how to expand q-input width?

      @kaizoku2508 hello, click the link of an example I made above…

      posted in Help
      metalsadman
      metalsadman
    • RE: how to expand q-input width?

      @kaizoku2508 @s-molinari is correct, anyway here’s an expandable q-input in a toolbar example https://codepen.io/metalsadman/pen/dyOBEBg.

      posted in Help
      metalsadman
      metalsadman
    • RE: Q-BTN click. How to retrive properties in js?

      @jj log the event object, check on the target property, could also use a vue ref there, or pass a string params on your handler, if you’re just trying to use the name attribute as a flag or something.

      posted in Framework
      metalsadman
      metalsadman