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

ENH: Allow setting the container class #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grahamhoyes
Copy link

Resolves #30 by adding an optional wrapper_class kwarg to the widget. Defaults to svelte-jsoneditor-wrapper for backwards compatibility, but can be set to eg tailwind classes if using django-unfold.

@grahamhoyes
Copy link
Author

Just a first pass - I imagine there may be concern with too many kwargs on the instance eventually, so may instead want to put this in wrapper_attrs dict and go from there

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

Successfully merging this pull request may close these issues.

Allow customizing editor min height and width
1 participant