Skip to content

LINT: widgets() catalog: expose DG2 pluggable widget configuration properties (selection, itemSelectionMethod, itemSelectionMode) #2001

Backlog

Description

@acarum

The widgets() Starlark catalog currently exposes only common widget properties (widget_type, name, entity_ref, nanoflow_ref, etc.). DG2-specific configuration values are not accessible, which makes it impossible to write lint rules for two patterns that are architecturally required in our project:

  1. Selection mode must be Multi — com.mendix.widget.web.datagrid.Datagrid has a selection property (None / Single / Multi), not exposed.
  2. rowClick + toggle must be paired — itemSelectionMethod (rowClick / click) and itemSelectionMode (toggle / clear) must appear together; neither is exposed.

What we'd like:

For DG2 widgets (widget_type == "com.mendix.widget.web.datagrid.Datagrid"), expose at minimum:

┌───────────────────────┬────────┬───────────────────────────┐
│ Property │ Type │ Values │
├───────────────────────┼────────┼───────────────────────────┤
│ selection │ string │ "None", "Single", "Multi" │
├───────────────────────┼────────┼───────────────────────────┤
│ item_selection_method │ string │ "rowClick", "click", "" │
├───────────────────────┼────────┼───────────────────────────┤
│ item_selection_mode │ string │ "toggle", "clear", "" │
└───────────────────────┴────────┴───────────────────────────┘

mxcli version: v0.33.1
Mendix version: 11.12.8

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