Skip to content

Commit

Permalink
Correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Feb 27, 2020
1 parent 9f4c5da commit 2ac110a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/WIDGETS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Question Widgets

Collect forms are defined using [XForms](https://opendatakit.github.io/xforms-spec/) which in the most sense is just a list of questions (which can be of various [types](https://xlsform.org/en/#question-types)). To render the form and let the enumerator fill it out Collect needs to be able to deal with each of these different question types. To do this Collect has a series of different `QuestionWidget` implementations - usually one for each type of question. The exact mapping between question types and widgets happens in `WidgetFactory`.
Collect forms are defined using [XForms](https://opendatakit.github.io/xforms-spec/) which in the most simple sense are just a list of questions (which can be of various [types](https://xlsform.org/en/#question-types)). To render the form and let the enumerator fill it out Collect needs to be able to deal with each of these different question types. To do this Collect has a series of different `QuestionWidget` implementations - usually one for each type of question. The exact mapping between question types and widgets happens in `WidgetFactory`.

## Implementing widgets

The `TriggerWiget` will be used here as an example of how to implement a new widget. The `TriggerWidget` represents the `ackknowledge` question type (its docs are [here]https://docs.opendatakit.org/form-question-types/#trigger-acknowledge-widget)).
The `TriggerWiget` will be used here as an example of how to implement a widget. The `TriggerWidget` represents the `acknowledge` question type (its docs are [here](https://docs.opendatakit.org/form-question-types/#trigger-acknowledge-widget)).

```java
public class TriggerWidget extends QuestionWidget {
Expand Down

0 comments on commit 2ac110a

Please sign in to comment.