widgetti / ipyvuetify

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

Provide access to the breakpoint service object #285

Open egormkn opened 1 year ago

egormkn commented 1 year 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 1 year 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