Breadcrumbs Control

The Studio has a navigational control called Breadcrumbs. The Breadcrumbs control provides an overview of the navigational hierarchy and the current location of the page.

Users can keep track of the page from the provided graphical element on the user interface.

With the breadcrumb trail you can track and see previous pages too, but cannot go forward once moved backward with the trail.

UI property

Info

  • Unique Name: A Unique Name is used to uniquely identify a control in your App. Every control that is added on the screen gets an auto-generated Unique Name on the basis of the Label name given to the control.

  • Label: The text that is displayed helps the user to understand the type of control it represents.

  • Tooltip: The option to add tooltip text as a hint to the user. It is visible when you switch on the visibility toggle property.

  • Description: The option to provide a description that you can add for your control. It is visible when you switch on the visibility toggle property.

  • External CSS: With this property, one can imply exclusive CSS on controls. You can customize your control with CSS by selecting the correct class or id of the control. You can read more here.

  • Caching: When the caching option is selected and if a LOOKUP formula is applied to this control, the value that the LOOKUP returns will be cached and the user will be able to see this value in the fields even when he accesses the microapp later with no connectivity. This option is required when you want your app to be accessible in offline mode as well and getting the latest data from the sheets is not always critical.

  • Hidden: The hidden option helps to hide control from the user. This helps when you don’t want the user to view the control.

  • Trigger Dependents: When you Disable Trigger Dependents, it helps you to reduce or optimize the unnecessary evaluation of the dependent control’s formula. For a detailed explanation refer to this article here. By default, Trigger dependents are enabled. However, in complex apps by switching it off, you would limit the evaluation in the dependent control and in turn ensure quicker response times.

    • Hide on desktop: This option hides the selected control in the desktop view.

    • Hide on Mobile: This option hides the selected control in the mobile view.

    • Dynamic Height: This option dynamically increases /decreases the height of the text control based on the given content.

    • Maintain space when hidden: This option maintains the specified space between controls when a particular control is hidden. When control is hidden the space is maintained in the preceding control depending on the space the previous control has occupied.

Note: Hide on desktop, Hide on Mobile, Dynamic Height and Maintain space when hidden are
available in Basic Freeflow Editor Only.

Data Mapping

image

Under this section, you can map the data as per their distinctive columns, since the breadcrumbs control has an expected format of data as per which you need to bind data and thus map its properties accordingly.

Property

Hover Color:* This property sets the color of the past trail/states of the control on hover.

  • Label Properties: This enables the user to provide different styling attributes to the breadcrumb labels except for the current state.

  • Icon Properties: This enables the user to provide a different set of styling to the icon present in the breadcrumb trail.

  • Selected Item Properties: This enables the user to provide a different set of styling to the active/selected/current trail of the navigation page.

  • Separator Properties: This enables the users to provide styling to the separator icons between each navigation state.


How to use Breadcrumbs control

Select Breadcrumbs under Custom section from Controls.

Bind data to Breadcrumbs control

There are different ways in which you can bind data to the Breadcrumbs control.

  1. Data: This is the data that does not change over a period of time. Such data is used to assign default values in fields in your application. The static data should be based on JSON data type of array of values can be consisting of label, value, image and icon.

  2. Controls: This allows you to get data from one of the App controls.

  3. Variables & Keywords: This assigns the value of the variables and keywords defined or available in the app.

  4. Query String: You can also select from the available query string to bind data to the control.

  5. LoggedIn User: You can display the properties related to the LoggedIn User like username, usermail, Admin, status, and so on. You can select a single property only. Select column and click Save .

  6. Connectors: This allows you to select a configured connector and call its API to fetch values and bind the values returned by the respective API. You can select multiple keys to display values.

  7. Custom Formula: This can be used to apply formulas and store the output of those formulas. You can learn more about formulas here.

  8. Custom JavaScript: You can also add a Custom JavaScript to fetch data and use it for your app operations.

Sample Data:

[ 
        { 
            "image": "https://dronamobilepublic.s3.amazonaws.com/DRONA5_Team108/content/app/images/public/Rectangle 1_1AqQT.png", 
            "label": "John doe", 
            "value": "John", 
            "icon": "" 
        }, 
        { 
            "image": "https://dronamobilepublic.s3.amazonaws.com/DRONA5_Team108/content/app/images/public/Rectangle -1_8uTVr.png", 
            "label": "Ruby frank", 
            "value": "Ruby", 
            "icon": "" 
        }     
] 

The data bind format and output format for Breadcrumbs control is an array of objects.

Add action on Breadcrumbs control

value_select :

This is when there is a change in the value of the respective control namely by clicking another option.

From the data mapping property, after selecting the value column from the data of the breadcrumbs control, we get the values used anywhere, like actions and connectors.

To view, we have applied the event on toast action. We have selected the breadcrumbs keyword for the toast message.

Now preview the app and click on the trail to select previous states.

Control preview

In the above image the text input control is connected with the value of the selected state of the Breadcrumbs control.

DronaHQ Docs have found a new place!

We have updated and moved our documentation to docs.dronahq.com.
You can continue to ask questions in the community here.