Skip to main content

 

 

 

Template:OutSystems/Documentation_KB/Breadcrumb_New_Layout

 

 

Template:OutSystems/OSLanguageSwitcher

 

Applies only to Traditional Web Apps

 

 

OutSystems

Tag

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • You can use the Tag UI Pattern to style small texts in a colored tag format. Use the Tags UI Pattern to display statuses, labels, or categories thus providing great user experience.

    How to use the Tag UI Pattern

    1. In Service Studio, in the Toolbox, search for Tag.

      The Tag widget is displayed.

    2. To From the Toolbox, drag the Tag widget into the Main Content area of your application's screen.

    3. Add your content to the placeholders. In this example, we add some text.

    4. On the properties tab, you can change the Tag's look and feel by setting the (optional) properties, for example, size and color.

    After following these steps and publishing the module, you can test the pattern in your app.

    Properties

    Property Description
    Color (Color Identifier): Optional Set the Tag's background color. Red, orange, yellow, lime, green, blue, violet, and pink are just some of predefined colors available.

    Examples

    • Blank - Displays the badge in the color you chose when creating the app (default value).
    • Entities.Color.Red - The Tag's background is red.
    Shape (Shape Identifier): Optional Set the Tag's shape. Rounded, soft rounded, and sharp are the predefined shapes available.

    Examples

    • Blank - Displays a rounded shaped Tag (default value).
    • Entities.Shape.Sharp - Displays a square shaped Tag.
    Size (Size Identifier): Optional Set the Tag's size. Small and medium are the predefined sizes available.

    Examples

    • Entities.Size.Medium - Displays a medium-sized badge.
    • Entities.Size.Small - Displays a small sized Tag.
    IsLight (Boolean): Optional Specify the Tag's background color.

    Examples

    • Blank - A darker hue of the color is applied to the Tag and a lighter color to the text (default value).
    • True - A brighter hue of the color is applied to the Tag and a darker color to the text.
    • False - A darker hue of the color is applied to the Tag and a lighter color to the text.
    ExtendedClass (Text): Optional Add custom style classes to the Tag UI Pattern. You define your custom style classes in your application using CSS.

    Examples

    • Blank - No custom styles are added (default value).
    • "myclass" - Adds the myclass style to the Tag UI styles being applied.
    • "myclass1" "myclass2" - Adds the myclass1 and myclass2 styles to the Tag UI styles being applied.
    • Was this article helpful?