Skip to content

Conversation

@grahamhoyes
Copy link
Contributor

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
Contributor 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

@thclark
Copy link
Contributor

thclark commented Jun 2, 2025

@grahamhoyes I'm very sorry I missed this, it looks good. I'd agree about your concern of too many kwargs on the instance but as we're a way from that we can think about that in version 1; I think this is fine.

@thclark
Copy link
Contributor

thclark commented Jun 2, 2025

Tests aren't running because of an unrelated issue with django debug toolbar (which probably doesn't even need to be installed TBH, I'll clear that up in another branch/release).

@thclark thclark merged commit 391d932 into octue:main Jun 2, 2025
1 of 5 checks passed
@thclark
Copy link
Contributor

thclark commented Jun 2, 2025

Thanks for your contribution @grahamhoyes :)

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

2 participants