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

Customizing forms #321

Closed
bronte2k7 opened this issue May 13, 2021 · 4 comments
Closed

Customizing forms #321

bronte2k7 opened this issue May 13, 2021 · 4 comments

Comments

@bronte2k7
Copy link
Contributor

bronte2k7 commented May 13, 2021

Hi @gi0baro

Need information with examples)))

@gi0baro
Copy link
Member

gi0baro commented May 13, 2021

@bronte2k7 could you give us a bit of context?

What do you mean by customizing forms? Are you talking about styling, rendering, behaviour, validation..?

@bronte2k7
Copy link
Contributor Author

bronte2k7 commented May 13, 2021

style and custom widget

no information: https://emmett.sh/docs/2.2.x/forms#customizing-forms

@gi0baro
Copy link
Member

gi0baro commented May 18, 2021

@bronte2k7 yes, you can use custom widgets and Form.custom attribute, see:

Regards creating custom styles, you can inherit from the FormStyle class (https://github.com/emmett-framework/emmett/blob/master/emmett/forms.py#L435), write your own widget functions and apply the style to forms using the formstyle parameter. You can also apply the style to all forms setting App.config.ui.forms_style to your class.

@gi0baro
Copy link
Member

gi0baro commented Jan 7, 2022

I'm closing this for inactivity

@gi0baro gi0baro closed this as completed Jan 7, 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

No branches or pull requests

2 participants