1. Knowledge Base
  2. Data View Toolset (SPFx)

How to customize a single employee colors in Org Chart app using Conditional Formatting control

Please follow this article if you would like to customize the colors of an employee card in Org Chart app

1. Adding the conditional formatting control to the layout, allows you to create color and icon       
    customization and apply them to specific employees based on conditions. You can also use it to      mark employees as assistants so they will use the assistant card template.

   Edit the page and click the gear icon within the top bar of your Org Chart app.



  Verify that Conditional Formatting control has been enabled using the toggle.

 

You will now see the Conditional Formatting control where you can add conditional Misspelled WordMisspelled Wordformatting rules. To add a new rule, click the "Add" button, a new empty rule will be added:



You can start editing the rule from left to right, starting with Icon, colors & label. Please make sure you have selected "Format - Entire Item" to color the employee card. You can add a condition if you would like to apply color to a specific employee card.



For example, I would like to apply a blue background color to an employee card if it equals my name. I have also changed the text color to black within the employee card.





You can see that my employee card is now blue.