kopia lustrzana https://github.com/wagtail/wagtail
5.0 release notes - fix headings from #10062
rodzic
768d8f3d2c
commit
55483b5424
|
@ -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.
|
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
|
```html+django
|
||||||
<button type="submit" class="button action-save button-longrunning" data-clicked-text="{% trans 'Creating…' %}">
|
<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>
|
</button>
|
||||||
```
|
```
|
||||||
|
|
||||||
### New syntax
|
#### New syntax
|
||||||
|
|
||||||
Minimum required attributes are `data-controller` and a `data-action`.
|
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>
|
</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.
|
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.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue