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. o'kennedy
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    o'kennedy

    @o'kennedy

    0
    Reputation
    23
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    o'kennedy Follow

    Latest posts made by o'kennedy

    • QTab: How To Override The staticClass .no-wrap?

      There is a class added .no-wrap that returns the css: flex-wrap: no-wrap; by the components renderer. I’m trying to override this with a flex-wrap: wrap.

      I’ve tried using v-bing:class and :style.

      as one example:

      <script>
      export default {
        data () {
          styleObject: {
              flexWrap: 'wrap !important',
            }
        }
      }
      </script>
      
      <template>
        <the-component :style="styleObject" </the-component>
      </template>
      

      Using the above example, Chrome’s inspector shows that the component is inlined with style="flex-wrap: wrap !important;" and the .no-wrap class is overridden (crossed-out) but that is not what is rendered - its still wrapping.

      Is there and how can I override the render staticClass that the component injects??

      I looked at the code avail here but I don’t know how to override it.

      There’s a CodePen here. However, I cannot get the viewport to work correctly.

      The concept is that the component wrapps on smaller screen widths and I’m wanting to override this like:

      @media (max-width: 599px) {
        .no-wrap {
          flex-wrap: wrap !important;
        }
      }
      
      posted in Help
      o'kennedy
      o'kennedy
    • How to Fire Function On Layout In Mobile

      I had to use a custom call back for toggling the drawer that toggles both the q-layout-drawer and a custom app-drawer-footer component that uses v-show.

      This seems to work well on the desktop break-point, however, not on mobile -> The Drawer toggles as expected in both cases but not the DrawerFooter ( the footer only toggles via the header-btn which is hidden when the drawer is open ). I think I need to use the @on-layout(Boolean) to fire it on the overlay(??) but I can not figure out how.

      Below is the mothods I’m currently using.
      Any help will be greatly appreciated!

      data() {
        return {
          leftDrawerOpen: false,
          leftDrawerFooterShow: false,
        }
      },
      
      created() {
        // listen for menu btn in LayoutHeader.vue to toggle the leftDrawer
        this.$bus.$on('toggleLeftDrawer', this.LeftDrawerCallBack)
        // Animates the leftDrawer to open when app finishes loading
        this.LeftDrawerCallBack()
      },
      
      methods: {
        LeftDrawerCallBack() {
          // Toggle the leftDrawer
          this.leftDrawerOpen = !this.leftDrawerOpen
          // Toggle the LeftDrawerFooter
          this.leftDrawerFooterShow = !this.leftDrawerFooterShow
        },
        // loadRoute() {
        // },
      },
      
      posted in Help
      o'kennedy
      o'kennedy