Introduction

Getting started

Walkthrough Guides

CafeX Apps

Workflows

Using CafeX Collaborate App

Reporting

Managing CafeX

Integrating CafeX

Security

App Studio

App Studio Components

App Studio Components

Altering the appearance of an App Studio Component

Modified on Thu, 19 Dec at 9:11 AM

TABLE OF CONTENTS


The App Studio allows you to apply extensive styling capabilities on components, eliminating the need for familiarity with CSS-styling and front-end development.


As an App developer, you can configure the appearance of App Studio Components. For a full list of App Studio Components, see the Adding App Studio Components.


To change the appearance of a Component:

  1. From the Appearance and Configuration panel, select Appearance.
  2. Modify the settings as you require.

Note: Some settings are specific to certain type of Components.  


General Appearance Settings

The following appearance settings apply to most App Studio Components:


Appearance settingDescription
Size & positionDefine X and Y coordinates relative to their parent container.
Adjust Width (W) and Height (H).
VisibleControl the visibility of a Component. Use a moustache expression to evaluate a Component's visibility based on a Data Set.
BackgroundSpecify the color of the Component background using the color picker or providing Hex/RGBA values.
PaddingAdd internal spacing within the Component borders.
Click Toggle advanced padding to specify top, bottom, left, and right values.
Select suitable units (px, rem, or u).
MarginAdd external spacing around the Component.
Click Toggle advanced margin to specify top, bottom, left, and right values.
Select suitable units (px, rem, or u).
BorderCustomize border color, size, and corner radius. Use the toggle to configure a particular edge.
Drop shadowConfigure color, position, and blur of a drop shadow.


Text Components

Text Components have additional appearance settings:

SettingDescription
FontSelect a web font for the text.
Font SizeSpecify the font size in px, rem, or u.
Text StylesUse the buttons to toggle the bold, italic, strikethrough, or underline styles.
Horizontal and Vertical JustificationAlign the text horizontally (left, center, right) or vertically (top, middle, bottom) within the Component.
ColorSelect an appropriate color using the color picker or providing Hex/RGBA values.


Conditional styling

Conditional styling allows you to apply different styles to Components based on specific conditions or expressions. By setting a condition, you can customize the look of Components to match different states or values in your application.


To apply conditional styling:

  1. Locate the Conditional Styling section.
  2. Click Add new condition.
  3. Specify a name for the conditional style.
  4. Set a condition by defining an expression.
  5. Configure the rest of the settings according to the type of the Component.


Example: Updating the appearance of a Component


The following example demonstrates how to style a button component in your App.

 

To configure Appearance:

 

  1. Click on the Button Component box in your App.
  2. In the Appearance and Configuration section, select Appearance.
  3. Modify the Background:
    3.1 Set the background color. Adjust transparency using the alpha slider if needed.
  4. Customize the Border:
    4.1 Change the color of the border to your preferred choice.
    4.2 Set the border size to 2px.
    4.3 Adjust the corner radius to 8px.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article