widgetti / ipyvuetify

Jupyter widgets based on vuetify UI components
MIT License
343 stars 59 forks source link

Provide access to the breakpoint service object #285

Open egormkn opened 10 months ago

egormkn commented 10 months ago

There is an example in vuetify docs that opens the fullscreen dialog on mobile devices:

<template>
  <v-dialog :fullscreen="$vuetify.breakpoint.mobile">
    ...
  </v-dialog>
</template>

In ipyvuetify the fullscreen property of v.Dialog expects a boolean value. Is it possible to either allow it to be a string with a javascript expression, just like in the example, or provide some widget with the same properties as in $vuetify.breakpoint to use with jslink?

maartenbreddels commented 10 months ago

Hi,

I see why that is useful. You could always use a template, but we have explored this idea a bit in https://github.com/widgetti/ipyvue/pull/80

cheers,

Maarten