# Workflow

Workflows show the steps in some sort of process or UX flow.

# Usage

Use the workflow prop to pass in an array of your workflow items. Use v-model to keep track of the active step. v-model value must be contained in workflow array

# CiWorkflowItem Interface

Each WorkflowItem can have the following properties.

Property Type Description Required
id number | string a unique descriptor for the item true
type 'trigger' | 'step' | 'create' The type of item. Default is 'step'. false
icon string The icon to render in the step true
title string The title of the step true
text string The text of the step true
tooltip object The tooltip of create step false

# Step variants

Use the variant option for workflow steps to change variant of the step. Default is normal, but available options are normal and optional. If optional is set for step it adds delete button to right side of step.

# Slots

The Workflow component uses scoped slots that can be leveraged for customizing the content of Workflow Triggers and Workflow Steps.

Use the trigger-ID={item} slot for custom triggers. Replace ID with the id of the trigger you want to modify and item with the variable you want to use for your item data.

Use the step-title-ID={item} slot for custom step titles. Replace ID with the id of the trigger you want to modify and item with the variable you want to use for your item data.

Use the step-ID={item} slot for custom steps. Replace ID with the id of the trigger you want to modify and item with the variable you want to use for your item data.

# Events

Event Arguments Description
@delete Deleted item object Emitted when optional step delete is clicked
@create Create item object Emitted when create step type is clicked
Last Updated: 6/3/2024, 12:58:56 PM