Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building a class with ipyvuetify components #132

Open
joseberlines opened this issue Mar 17, 2021 · 3 comments
Open

Building a class with ipyvuetify components #132

joseberlines opened this issue Mar 17, 2021 · 3 comments

Comments

@joseberlines
Copy link

I am interesting in finding out the best way to build a class containing several ipyvuetify components as a block. As a little example an input field and two buttons. This will be serve to others that will interact with the class without knowing anything about ipyuetify. Any suggestion of a code example to look at? Thx

@CWeissS
Copy link

CWeissS commented Mar 18, 2021

I had the same problem recently and was able to solve by extending the widget I wanted:
https://stackoverflow.com/questions/66629404/python-ipyvuetify-how-to-combine-multiple-widgets-into-a-class

@12rambau
Copy link
Contributor

I do it all over my modules using the sepal_ui lib. A nice and simple example can be found in the following file : https://github.com/12rambau/sepal_ui/blob/53144e23e1a0cdcb55ceb4f60f4ac313cc6cc761/sepal_ui/sepalwidgets/tile.py#L10

It's a reusable object called Tile that embed several existing widgets, flavoured with js specific behaviours

@joseberlines joseberlines changed the title Building a class with ipyvuetify componentes Building a class with ipyvuetify components Aug 27, 2021
@12rambau
Copy link
Contributor

@joseberlines is the answers provided are solving your issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants