Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
fixed: links in widgets tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Nov 1, 2021
1 parent 2e458e8 commit 7cae4f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/40-widgets.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Widgets in Enketo Core

Widgets extend the [Widget class](../src/js/widget.js). This is an example:
Widgets extend the [Widget class](https://github.com/enketo/enketo-core/blob/master/src/js/widget.js). This is an example:

(see full functioning example at [/src/widget/example/my-widget.js](../src/widget/example/my-widget.js)
(see full functioning example at [/src/widget/example/my-widget.js](https://github.com/enketo/enketo-core/blob/master/src/widget/example/my-widget.js)
```js
import Widget from '../../js/widget';

Expand Down Expand Up @@ -109,7 +109,7 @@ export default MyWidget;

Some of the tests are common to all widgets, and can be run with a few lines:

(see full functioning example at [/test/spec/widget.example.spec.js](../test/spec/widget.example.spec.js))
(see full functioning example at [/test/spec/widget.example.spec.js](https://github.com/enketo/enketo-core/blob/master/test/spec/widget.example.spec.js))
```js
import ExampleWidget from '../../src/widget/example/my-widget';
import { runAllCommonWidgetTests } from '../helpers/testWidget';
Expand Down

0 comments on commit 7cae4f4

Please sign in to comment.