Thymeleaf - custom attribute

前端 未结 3 1443
天命终不由人
天命终不由人 2021-02-05 02:48

I need to set custom attribute (data-validation-matches-message) value from messages resources.



        
3条回答
  •  清酒与你
    2021-02-05 03:29

    Using 3.0.9.RELEASE:

    
    

    This will add width="44%" or width="59%according to a boolean set in the variables. width might as well have been any other custom attribute.

提交回复
热议问题