[MGNLUI-6057] Showing component in extension view Created: 20/Jul/20  Updated: 20/Jul/20

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Currently, extension view is toggled by small icon. But in jcr-browser, and might in customer requirement, the component like workspace selector can be showed there.

There is some code in jcr-browser to help it works with:

 protected Component createViewIcon(String viewId, boolean extension, String icon) {
        if (extension && icon == null) {
            ExtensionViewDefinition<?> contentViewDefinition = getExtensionViews().get(viewId);

            UIComponent view = create(contentViewDefinition.getView());

            return view.asVaadinComponent();
        }

        return super.createViewIcon(viewId, extension, icon);
    }

Generated at Mon Feb 12 09:32:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.