-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Frontend: Rendering Functions
Loïc Bellemare-Alford edited this page Apr 25, 2021
·
2 revisions
⚠️ Warning: This is WIP - See this PR for details.
The following "render functions" allow to render values in the <PartialValue /> component. They can also be used directly when rendering complex partials.
Convert a boolean to enabled or disabled
-
Parameters:
value— -
Returns:
string—
Convert a boolean to a checkmark or x
-
Parameters:
value— -
Returns:
string—
Convert a boolean to a readable boolean
-
Parameters:
title— -
Returns:
string—
Convert value to never if invalid
-
Parameters:
value— -
Returns:
any|string—
Convert a list of value to a list of chips
-
Parameters:
list— -
Returns:
array|string—
Convert a boolean to a 'yes' or 'no'
-
Parameters:
value— -
Returns:
string—
Return the value or the string 'None' if it doesn't
-
Parameters:
value— -
Returns:
any—
Format Date
-
Parameters:
time— -
Returns:
string—
Render div with content set throught innerHTML
-
Parameters:
-
innerHtml— -
props—
-
-
Returns:
HTMLDivElement—
Render the items in an object as an unordered list
-
Parameters:
-
resources— -
accessor—
-
-
Returns:
HTMLUListElement—
Render a Security Group object as a link
-
Parameters:
securityGroup— -
Returns:
ResourceLink—
Render a Policy id as a link
-
Parameters:
id— -
Returns:
ResourceLink—
Render a FlowLog id as a link
-
Parameters:
id— -
Returns:
ResourceLink—
Render tags in an unordered list
-
Parameters:
tags— -
Returns:
HTMLUListElement—
- Home
- Getting Started
- Setup
- Compliance
- Configuration and Usage
- Docker
- [v6] Upgrade to v6-alpha
- Advanced Usage
- Understanding the Architecture
- How to Contribute
- FAQ