User Manual

Tree

30/6/25
Tree

Kuika's Tree element is used for visual representation of hierarchical data structures. To help users better understand information, this element organizes a series of elements and sub-elements in a layered manner. Tree elements present complex data in an organized format, allowing users to easily explore data. For example, it is ideal for showing folder structure in a file manager application or page hierarchy in a content management system. In this tutorial, you will learn how to create a hierarchical structure in your application using the Tree element.

The Tree element is only supported in web applications.

This training content consists of the following topics:

  • Adding a Tree element
  • Binding data to a Tree element
  • Element settings and customization

Add Tree Element

  1. Log in to the Kuika platform.
  2. Select the project you will work on from the Apps screen.
  3. Enter the UI Design module.
  1. From the Elements panel on the left side, drag and drop the Tree element under the Display category onto your screen.

Bind Data to Tree Element

The Tree element cannot be used as a custom list, so it is bound to a data table. Follow the steps below for data linking:

1. Create Datasource

  1. Enter the Datasource module.
  2. Create a new table and define the following columns:
    • ID (Guid): Unique ID of the data
    • Title (String): Title of the item to be displayed
    • ParentID (Guid): ID of the parent to which the data is bound (use null for parent items)

2. Create SQL Action

  1. Go to the Actions module.
  2. Click on the+ icon and select New SQL Action.
  3. Enter the following SQL command:
SELECT * FROM your_datasource_name

     4. Create the SQL Action by clicking the CREATE button.

3. Binding Data to a Tree Element

  1. Select the Tree element.
  1. Go to Options in the Properties panel on the right side.
  2. Click on the Actions field and select the SQL Action you created.
  3. Configure the following fields:
    • Field to Display ID: Select the database column where the data will be displayed (for example, Title).
    • Field to Use as Key: The column to use as the unique key for the data (usually ID is selected).
    • Field to Use as Parent: Column that determines which parent the child items belong to (ParentID). If the data will be located at the top level, the value of this field should be returned as null.
    • Checkable: When this option is enabled, Tree items are displayed with a checkbox next to them. This allows users to select multiple items.

Element Settings and Customization

Authorization

To manage access control at the element level, you can use the Authorization section in the Properties panel.

Access Types

Anonymous

Allows all users to view the element without logging in.

Restricted

Restricts access to only verified users or specific roles.

  • Everyone: When enabled, all logged-in users can access the element.
  • Roles: The roles allowed to access the element are selected here. To edit the role list, click the gear (⚙️) icon next to the Roles field to open the Role Management window. From this window, you can add new roles, create folders, or manage existing roles.

Unauthorized Behavior (Hide / Disable)

If the user does not have the required role, you can specify how the element should behave in the Choose field:

  • Hide: If the user is not authorized, the element is completely hidden and does not appear on the screen.
  • Disable: The element remains visible but becomes unclickable / unusable.

This setting is used to manage how unauthorized users encounter the element.

Visibility

  • Always Visible: Element is always visible.
  • Hidden: Element is hidden.
  • Sometimes Visible: The element is visible depending on a specific condition.

To configure the setting:

  1. Select the element on the screen.
  2. Open the Properties panel on the right edge.
  3. In the Visibility field, select an option according to your needs.

Editability

  • Enabled: Elements can be edited.
  • Disabled: Element cannot be edited.
  • Sometimes Enabled: The element can be edited or uneditable according to certain conditions.

Interface Design with Style Panel

By customizing your elements with the Styling Panel, you can create impressive interfaces for your web and mobile applications. In this section, you can configure the following settings:

  • Layout: Sizing, alignment and padding settings. Settings include Size, Min Size and Align.
  • Text: Font, style, color, size and spacing settings.
  • Fill: Customize the background with color or images.
  • Border: Add borders and corner radius settings.
  • Shadow: Add a shadow effect to add depth to elements.

By following these steps, you can configure the Area Chart element to suit your needs.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar