An open API service indexing awesome lists of open source software.

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

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

```