Skip to content

Feature: author Forms$SidebarToggleButton so a copied Atlas layout (describe layout → create layout) keeps its responsive sidebar toggle #1220

Description

@MohamedElNady

Use case

A common first step for a branded app shell is copying Atlas_Core.Atlas_Default into your own module: describe layout, then create layout under a new name, then customise. In v0.24.0 the describe output says so itself:

$ mxcli -p Repro.mpr -c "describe layout Atlas_Core.Atlas_Default"
...
-- Forms$SidebarToggleButton (sidebarToggle3)  -- NOT re-executable: mxcli cannot author this widget, so re-running this script would drop it

Atlas's responsive sidebar (slide-in navigation on phones and tablets) depends on that button. The copied layout therefore loses mobile navigation, and nothing warns at exec time.

Proposed behaviour

  • A widget keyword, for example sidebartoggle sidebarToggle3 (Caption: '', Icon: …, Class: 'toggle-btn', RenderMode: Button), which describe layout emits instead of the comment. Its properties are those of Forms$SidebarToggleButton (caption, icon, button style, render mode).
  • Until then, exec of a layout containing that comment could print a warning that the copy has no sidebar toggle.

Environment

mxcli v0.24.0; Mendix 11.14.0 blank project (Atlas_Core 4.1.3); the same widget is in current Atlas versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions