Skip to content

Features/add enabled controls#36

Merged
G-lalonde merged 2 commits into
mainfrom
features/add-enabled-controls
May 4, 2026
Merged

Features/add enabled controls#36
G-lalonde merged 2 commits into
mainfrom
features/add-enabled-controls

Conversation

@G-lalonde

Copy link
Copy Markdown
Contributor

Description

  • Add a isEnabled flow to all Pilot controls : PilotPicker, PilotSwitch and PilotTextField. We follow the same behavior used by PilotButton to be able to set the control and disabled from the common.
  • We also make these component open to make it easier to extend their functionalities. Again, same behavior as PilotButton

shape = shape,
colors = colors,
enabled = enabled,
enabled = enabled && isEnabledFlow,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PilotTextField alreayd has an enabled: Boolean = true parameter in its constructor. I kept both for now to avoid breaking changes and allow transition to drive this value only from the common.

@G-lalonde G-lalonde merged commit eb00cf8 into main May 4, 2026
1 check passed
@G-lalonde G-lalonde deleted the features/add-enabled-controls branch May 4, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants