Skip to content

Commit

Permalink
Merge pull request pagekit#48 from floriansemm/patch-1
Browse files Browse the repository at this point in the history
fix code-formatting
  • Loading branch information
Malte-Christian Scharenberg committed Apr 13, 2016
2 parents 0c38cf9 + 4b5f3a6 commit bdaaf7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions developer-guides/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This example requires an additional JS component located at `hello:js/widget.js`

`js/widget.js`:

````
```javascript
window.Widgets.components['system-login:settings'] = {

section: {
Expand All @@ -83,11 +83,12 @@ window.Widgets.components['system-login:settings'] = {
props: ['widget', 'config', 'form']

};
```

`views/widget.php`:

```php
<p>Hello Widget output.</p>
````
```

**Note** A good example of a full Widget is located at `app/system/modules/user/widgets/login.php` in the Pagekit core.

0 comments on commit bdaaf7f

Please sign in to comment.