adobe / adobe/aem-core-wcm-components
[Title] Heading size option in custom components
- Dominant language
- Java
- Stars
- 795
- Forks
- 775
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 8
Description
## Feature Request
**Problem**
When I create custom component that uses heading size option I want to reuse Core Componetns approach. I can easily add form select widget to my dialog with datasource from *AllowedHeadingElementsDataSourceServlet* and default values, but I need to provide
custom JavaScript that is responsible for hiding datasource or default values in dialog.
Moreover my component's policy requires **allowedHeadingElements** property even if author shouldn't have possibility to change allowed elements. (It can be solved with a hidden form resource type for that property)
**Solution**
1. Core Components provides generic JS to hide datasource or default heading size in dialog.
2. AllowedHeadingElementsDataSourceServlet always returns default, non-empty allowed heading elements. List may be configured in OSGI.
**Environment**
Core Components version 2.5.0
Contributor guide
Research direction
Start with AllowedHeadingElementsDataSourceServlet and the Core Components heading-size dialog behavior. Review how custom JavaScript hides the datasource or default heading values and how the allowedHeadingElements policy property is handled. Done means generic dialog behavior is reusable, and the servlet returns a configurable, non-empty default list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- backend, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100