https://github.com/thiagodnf/thymeleaf-extras-input-attributes
Thymeleaf dialect for input attributes
https://github.com/thiagodnf/thymeleaf-extras-input-attributes
spring-boot thymeleaf thymeleaf-extra thymeleaf-java
Last synced: 9 months ago
JSON representation
Thymeleaf dialect for input attributes
- Host: GitHub
- URL: https://github.com/thiagodnf/thymeleaf-extras-input-attributes
- Owner: thiagodnf
- Created: 2019-07-04T14:41:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-04T22:01:02.000Z (almost 5 years ago)
- Last Synced: 2025-03-17T06:11:20.822Z (about 1 year ago)
- Topics: spring-boot, thymeleaf, thymeleaf-extra, thymeleaf-java
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thymeleaf Extras Input Attributes
Thymeleaf dialect for input attributes
## Setup
```xml
thiagodnf.thymeleaf.extras.input.attributes
thymeleaf-extras-input-attributes
1.0.0
```
## Code
```java
@Configuration
public class ThymeleafConfiguration {
@Bean
public InputAttributesDialect getInputAttributesDialect() {
return new InputAttributesDialect(true);
}
}
```
## Usage
### Source
```java
public class SignupDTO {
@NotBlank
@HTMLAutoFocus
@HTMLSpellCheck("false")
@HTMLAutoComplete("given-name")
private String firstname;
}
```
### Result
```html
```