micronaut-projects / micronaut-views

Micronaut Integration with Server Side View Rendering
Apache License 2.0
28 stars 32 forks source link

Add a `dataTurbo` field to form #771

Closed sdelamo closed 2 months ago

sdelamo commented 3 months ago

Add a boolean dataTurbo field to Form. It should default to true.

If false, a form should include the data-turbo attribute.

<form action="/messages" method="post" data-turbo="false">
  ...
</form>

See Disabling Turbo Drive on Specific Links or Forms

It should be tested in the TCK, modify the thymeleaf form fragment and it should be then updated in the starter fragment.