Markdown Viewer Control

To view formatted texts with bold, italics, underline, and more, the Studio has a control called Markdown Viewer. Markdown is a simple syntax that formats text as headers, lists, boldface, and so on.

The Markdown Viewer control allows you to bind markdown text directly in the control and it will render the HTML based on it. It is helpful to showcase presentational attributes and tags of HTML in text formatting.

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.

Property

With the Markdown Viewer control, we get a few properties to change the overall texture and editing of the display control. One can select from altering the background color of the control to providing it a vibrant border.

How to use Markdown Viewer

Select Markdown Viewer under Custom section from Controls .

Bind data to Markdown Viewer

There are different ways in which you can bind data to the Markdown Viewer 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 markdown language / HTML language.

  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:

**Sample Markdown** 
# h1 Heading 
## h2 Heading 
### h3 Heading 
#### h4 Heading 
##### h5 Heading 
###### h6 Heading 
## Horizontal Rules 
___ 
--- 
*** 
  "Smartypants, double quotes" and 'single quotes'      
## Emphasis       
**This is bold text**       
__This is bold text__      
*This is italic text*       
_This is italic text_       
~~Strikethrough~~  
## Blockquotes      
> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other... 
> > > ...or with spaces between arrows.
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.