Kullanıcı Kılavuzu

Tree

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

  • Anonymous Access: Allows users to access without entering account information.
  • All Roles Access: Provides access by verifying users' account information.
  • For element-level authorization, edit Authorization settings in the Properties panel.

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.

Actions

Kuika supports the following system actions:

  • Arithmetic, Authorization, Condition, Device, Export, Geolocation, Inversion, Local Storage, Multi Language, Navigation, Notification, Payment, UI Control, Process Administration, Process Automation, Trigger, Process Automation, Process Administration and String Operations.
  • You can also use SQL actions that you create yourself.
  • You can use the +ADD ACTION button from the Properties panel to add an action.
Actions support may not be available in some elements.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar