5.0 release notes - fix headings from #10062

pull/9097/head
LB Johnston 2023-02-15 06:01:41 +10:00
rodzic 768d8f3d2c
commit 55483b5424
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -83,7 +83,7 @@ The `button-longrunning` class usage has been updated to use the newly adopted S
If using the old approach, ensure any HTML templates are updated to the new approach before the next major release.
### Old syntax
#### Old syntax
```html+django
<button type="submit" class="button action-save button-longrunning" data-clicked-text="{% trans 'Creating…' %}">
@ -92,7 +92,7 @@ If using the old approach, ensure any HTML templates are updated to the new appr
</button>
```
### New syntax
#### New syntax
Minimum required attributes are `data-controller` and a `data-action`.
@ -103,7 +103,7 @@ Minimum required attributes are `data-controller` and a `data-action`.
</button>
```
### Examples of additional capabilities
#### Examples of additional capabilities
Stimulus [targets](https://stimulus.hotwired.dev/reference/targets) and [actions](https://stimulus.hotwired.dev/reference/actions) can be leveraged to revise the behaviour via data attributes.