Skip to content

Commit

Permalink
Fix link in custom HTML attributes in Panels documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage authored and lb- committed Jul 20, 2023
1 parent 69724e4 commit c220662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/pages/panels.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Without a top-level panel definition, a `FieldPanel` will be constructed for eac

### Additional HTML attributes

Use the `attrs` parameter to add custom attributes to the HTML element of the panel. This allows you to specify additional attributes, such as `data-*` attributes. The `attrs` parameter accepts a dictionary where the keys are the attribute names and these will be rendered in the same way as Django's widget `attrs`[https://docs.djangoproject.com/en/stable/ref/forms/widgets/#django.forms.Widget.attrs] where `True` and `False will be treated as HTML5 boolean attributes.
Use the `attrs` parameter to add custom attributes to the HTML element of the panel. This allows you to specify additional attributes, such as `data-*` attributes. The `attrs` parameter accepts a dictionary where the keys are the attribute names and these will be rendered in the same way as Django's widget {attr}`~django.forms.Widget.attrs` where `True` and `False` will be treated as HTML5 boolean attributes.

For example, you can use the `attrs` parameter to integrate your Stimulus controller to the panel:

Expand Down

0 comments on commit c220662

Please sign in to comment.