Skip to main content

AutomationSelect

The AutomationSelect component allows you to choose one or multiple options from a collapsed dropdown with options. Additionally, you can switch from select mode to expression mode which displays an AutomationTextInput to provide a dynamic expression.

Import

import { AutomationSelect } from '@dynatrace/automation-action-components';

Props

The props are the same as for the Strato SelectV2 component.

Example.tsx
import { AutomationSelect, Expression } from '@dynatrace/automation-action-components';

export const Example = () => {
const [value, setValue] = useState<string | null | Expression>('{{ result("task_1").value_1 }}');

return (
<AutomationSelect value={value} onChange={setValue}>
<SelectV2.Content>...</SelectV2.Content>
</AutomationSelect>
);
};
Still have questions?
Find answers in the Dynatrace Community