apostrophecms / apostrophecms/apostrophe
If no options passed from the template, a widget should default to options provided in its index.js
Open
bug
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 650
- Avg merge
- 19h 21m
- Merged PRs (30d)
- 23
Description
If we decide not to do this, we should be more explicit about it in the documentation.
Edit: use case https://stackoverflow.com/questions/47099783/options-for-areas-in-apostrophe-apos-widgets/47105098#47105098
Contributor guide
Research direction
Start by examining how options are passed from templates to a widget and how defaults are defined in the widget's index.js. Review the linked Stack Overflow use case and existing documentation, then determine whether defaulting should be implemented or documented explicitly; done means the chosen behavior is clear and covered by the relevant documentation or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- documentation, full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100