Skip to content

Commit a631a35

Browse files
committed
Complete readme
1 parent 6f78f08 commit a631a35

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,28 @@ For example, passing `my-widget-class` into `namespace` will create the followin
4242
<div class="pk-accordion__section-header my-widget-class__section-header" data-role="pk-accordion-section-header">
4343
...
4444
```
45+
46+
There are several nunjucks blocks you can hook into to override the content of parts of the widget. Just extend `widgetBase.html` in your project level `widget.html` and add your content into those blocks. See `widgetBase.html` for more context on placement of these blocks within each widget.
47+
48+
```markup
49+
50+
{% extends 'widgetBase.html' %}
51+
52+
{% block sectionsArea %}
53+
{% endblock %}
54+
55+
{% block sectionTitle %}
56+
{% endblock %}
57+
58+
{% block sectionTrigger %}
59+
{% endblock %}
60+
61+
{% block beforeSectionContent %}
62+
{% endblock %}
63+
64+
{% block sectionContent %}
65+
{% endblock %}
66+
67+
{% block afterSectionContent %}
68+
{% endblock %}
69+
```

0 commit comments

Comments
 (0)