Skip to content

Commit

Permalink
Complete readme
Browse files Browse the repository at this point in the history
  • Loading branch information
plantainrain committed Jul 24, 2019
1 parent 6f78f08 commit a631a35
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,28 @@ For example, passing `my-widget-class` into `namespace` will create the followin
<div class="pk-accordion__section-header my-widget-class__section-header" data-role="pk-accordion-section-header">
...
```

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.

```markup
{% extends 'widgetBase.html' %}
{% block sectionsArea %}
{% endblock %}
{% block sectionTitle %}
{% endblock %}
{% block sectionTrigger %}
{% endblock %}
{% block beforeSectionContent %}
{% endblock %}
{% block sectionContent %}
{% endblock %}
{% block afterSectionContent %}
{% endblock %}
```

0 comments on commit a631a35

Please sign in to comment.