Skip to content

Can't update breakpoints #30

Open
Open
@johannes-z

Description

@johannes-z

I have an application where the user can specify breakpoints to render different data. I cannot change the breakpoint at runtime however. Calling Vue.use(VueMq, { ... }) when it's already set doesn't do anything.

Something along the lines of this would be great:

Vue.use(VueMq, {
  breakpoints: { // default breakpoints - customize this
    sm: 450,
    md: 1250,
    lg: Infinity,
  }
  defaultBreakpoint: 'sm' // customize this for SSR
})

// in component
this.$mq.update('sm', 550)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions