apostrophecms / apostrophecms/apostrophe

If no options passed from the template, a widget should default to options provided in its index.js

Open
#1,096 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.