Configure an avatar component for Work scheduler
Use the Container component to add an avatar and the user name of the work item assignee.
Before you begin
Role required: admin, workspace_admin, or ui_builder_admin
Procedure
In the Content section, navigate to Body(Flex) > Card Base Container (Flex) > Card Base Header.
Right-click Card Base Header and select Add component after.
In the pop-up screen, select the Label value stacked component.
In the left pane, right-click Label value stacked and select Add component after.
Configure the component.
In the Components pop-up screen, select Container.
In the Config tab, do the following:
- Select the Edit component visibility icon (
Edit component visibility icon\).
2. Hover over the **Hide component** field and select the Dynamic data binding icon
Dynamic data binding icon.
3. In the **Hide component** field, enter `!@state.cardProps.assignedTo`
4. In the **Direction** menu, select **Row**.
5. In the **Styles** tab, in the **Align items** field, select the center icon.
6. Select **Save**.
To add the Avatar component, select Container(Flex) > +Add component.
Select +Add component
The Components pop-up screen appears.
| To | Do this |
|---|---|
| Add the Avatar component | In the configure tab, set the size, user name, and tooltip.1. In the Size menu, select Medium. 2. Hover over the User name menu, and select the Dynamic data binding icon Image omitted: dynamic-data-binding-icon.png 3. In the User name menu, type !@state.cardProps.assignedTo. 4. Hover over the Tooltip text menu, and select the Dynamic data binding icon Dynamic data binding icon. Image omitted: dynamic-data-binding-icon.png 5. In the Tooltip text menu, type !@state.cardProps.assignedTo.Dynamic data binding icon. |
| Add the Label Value Tabbed component | In the configure tab, set the size, and items.1. In the Size menu, select Small. 2. Hover over the Items field and select the Dynamic data binding icon Image omitted: dynamic-data-binding-icon.png 3. In the Items field, enter Dynamic data binding icon. [{value: @state.cardProps.assignedTo} 4. Select Save. |
Here's a demo on how to configure an avatar component for Work scheduler
Parent Topic:Create a Work scheduler card using the Next Experience UI Builder