Is it possible to add editable-form attribute to a editable form with anjularjs+angular-xeditable?

74 Views Asked by At

Thymyleaf does not allow to add "editable-form" attribute since it is not well formed. Is there any alternative way to do this?

application.properties

spring.thymeleaf.mode=LEGACYHTML5

Thymyleaf Template

<form editable-form name="tableform" onaftersave="afterSave()" oncancel="cancel()">
</form>
2

There are 2 best solutions below

1
On

AnagularJS directives can be prepended with data attributes.

<form data-editable-form="" name="tableform" onaftersave="afterSave()" oncancel="cancel()">
</form>
0
On

editable-form="editable-form" should work as well -- as long as angularjs understands it. The requirement is that all attributes have values.