Skip to content

Add value and form properties to button component #1341

Closed as not planned
Closed as not planned
@MaartenUreel

Description

@MaartenUreel

https://unfoldadmin.com/docs/components/button/

The form and value attribute are very common, especially in Django:

  • When the submit button is floating at the bottom, outside of the tag, you need to specify the name of the form to make the button work. So, to create custom pages that integrate visually we need to provide this attribute.
  • When using e.g. django-formtools wizard, you can jump to another step by specifying the button value with the step ID.

I know we can provide this using attrs but then it cannot be defined purely in the front-end, we need to involve backend just to add a simple attribute which clutters the code. It would be nice if these were integrated in the component so we can use it more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions