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

add custom style support #64

Merged
merged 2 commits into from
Jun 30, 2022
Merged

add custom style support #64

merged 2 commits into from
Jun 30, 2022

Conversation

wuyue92tree
Copy link
Contributor

custom style from attrs when using JSONEditor

# admin.py
class MyCustomAdmin(admin.ModelAdmin):
    formfield_overrides = {
        JSONField: {'widget': JSONEditor(attrs={'style': 'width: 620px;'})}
    }

in django admin
image

for #61

@nnseva
Copy link
Owner

nnseva commented Jun 29, 2022

Hi @wuyue92tree ,

Thank you for your excellent contribution.

Would you please to add a description of the option you've created, to the README.md file, to make it available for other users?

@wuyue92tree
Copy link
Contributor Author

@nnseva Usage has been added to README.md 😄

@nnseva nnseva merged commit ff15143 into nnseva:master Jun 30, 2022
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.

2 participants