Closed sirtoobii closed 3 years ago
Such a scenario could be possible if based on certain conditions, an action (and their respective button) is available or not.
# actionCfg [ ... $condition ? { action => 'submit', ... }: {}, ]
why would this button be created in the first place then ?
I often use this pattern:
$condition ? { button-definition }: ()
Such a scenario could be possible if based on certain conditions, an action (and their respective button) is available or not.