Skip to content

How to implement other vue components that are not supported in nicegui? #261

Closed Answered by falkoschindler
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Let me see...

  • Minor remark: Use backticks for the multiline template string. This simplifies quotations, line breaks and other escaped characters a lot.
  • Your code referred to standard (I guess copied from a Quasar example), but never defined it. I named it value and added it to the data() object.
  • What confused me at first: There is the current value with .min and .max, and there is the maximum allowed range from min to max. The latter are props defined via Python class parameters min and max. I included their values in the q-badge.
  • handle_click was defined but never used. I named it handle_change and added a registration @change to the q-range tag.

So the resulting JavaScript code is as…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #260 on January 19, 2023 19:13.