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. szabiaura
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 8
    • Best 1
    • Groups 0

    szabiaura

    @szabiaura

    1
    Reputation
    1
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    szabiaura Follow

    Best posts made by szabiaura

    • RE: Not mutating prop, still get an error

      @dobbel Thanks, that almost did it. For the perfect solution you need

        @Prop({ type: Boolean, default: false }) readonly withAdd!: boolean;
      
      posted in Help
      S
      szabiaura

    Latest posts made by szabiaura

    • RE: QSelect yields label on native form submit

      @metalsadman Never mind, it went away somehow. Works now. Sorry for the noise.

      posted in Help
      S
      szabiaura
    • QSelect yields label on native form submit

      Hi, I have a QSelect with map-options and emit-value set. When I’m doing a native form submit, surprisingly the selected option’s label gets submitted instead of its value. Is this a bug or a feature? 🙂 Is there a hook so that I can map it back before the request is sent? Thanks!

      posted in Help
      S
      szabiaura
    • RE: Material Outlined icons don't work

      @dobbel Thanks, it works.

      posted in Help
      S
      szabiaura
    • Material Outlined icons don't work

      Hi, I’m trying to use the outlined Material icon set, but something’s wrong. In quasar.conf.js I have

          extras: [
            'material-icons-outlined'
          ],
          framework: {
            iconSet: 'material-icons-outlined', // Quasar icon set
          },
      

      but instead of the icons I see the icon names (this is supposed to be a tab bar of 4 tabs with inline labels):

      cb728f24-180c-424f-8c4f-b321e68ce889-image.png

      I already tried restarting the entire framework but it didn’t fix it. quasar version 1.15.5, @quasar/app version 2.2.1. Any idea what’s wrong? Thanks!

      posted in Help
      S
      szabiaura
    • RE: Not mutating prop, still get an error

      @dobbel Thanks, that almost did it. For the perfect solution you need

        @Prop({ type: Boolean, default: false }) readonly withAdd!: boolean;
      
      posted in Help
      S
      szabiaura
    • RE: Not mutating prop, still get an error

      Thanks, so I did

        props = {
          withAdd: {
            type: Boolean,
            default: false
          }
        };
      

      But this doesn’t seem to define withAdd as a prop in a ts-class component.

      posted in Help
      S
      szabiaura
    • Not mutating prop, still get an error

      Hi,

      I’m trying to render a QSelect with an optional “Create New…” possibility on the top of the list. I’m using a prop to tell it whether it should have that option or just display existing elements:

      @Component
      export default class GroupSelector extends Vue {
        @PropSync('groupId', { type: Number }) id!: number;
        @Prop() readonly withAdd = false;
      
        get options() {
          return this.withAdd ? this.allGroupsWithAdd : this.allGroups;
        }
      
        get allGroupsWithAdd() {
          return [{ label: 'Create New Group…', value: 0 }, ...this.allGroups];
        }
      
        get allGroups() {
          // return all existing groups
        }
      
        // ...
      }
      

      And I pass the corresponding prop from the parent component:

            <group-selector :group-id.sync="group" with-add />
      

      But I get the infamous error on the console:

      [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "withAdd"
      

      Why is this happening? I’m not touching the withAdd property apart from reading its value, Vue still gives me an error. Is Quasar interfering with it? How can I fix this? Using a computed property as the error message suggests didn’t help.

      Thanks!

      posted in Help
      S
      szabiaura
    • Best place for Protocol Buffers files

      Hi,

      I have a bunch of Protocol Buffers files to be loaded by various components and store modules without exposing them on a public interface. What’s the best place to put them? What if the same files need to be loaded by the Electron main process as well?

      Thanks,
      Szabi

      posted in Help
      S
      szabiaura