Ce produit n'est pas pris en charge par le
site Datadog que vous avez sélectionné. (
).
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
This page provides a list of UI components that you can use when creating apps in App Builder.
Many component properties allow you to select from provided values. If you want to use an expression for a property’s value, click </> next to the property to use the code editor.
Any component that can trigger an event has a list of available reactions in events and reactions. These components can also use custom reactions.
For more information on using JavaScript in App Builder, see JavaScript Expressions. For more information about saving your components as a template, see Reusable Modules.
Button components have the following properties.
General
- Label
- The text that displays on the button.
Value: string or expression
Appearance
- Intent
- Controls the color of the button, with colors representing the purpose of the button.
Provided values: default, danger, success, warning - Is Primary
- Designed to call user attention to the most important action(s) for a given page or workflow.
Provided values: on, off - Is Borderless
- Removes the border from any button. On hover, it gets a background fill.
Provided values: on, off - Is Loading
- Shows a loading indicator.
Provided values: on, off - Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: click
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Callout value components have the following properties.
General
- Label
- The text that displays at the top of the component.
Value: string or expression - Value
- The value that the callout highlights.
Value: string or expression - Unit
- The unit associated with the value.
Value: string or expression
Style
- Style
- The visual style of the component.
Provided values: default, success, warning, danger, blue, purple, pink, orange, yellow, red, green, gray, vivid blue, vivid purple, vivid pink, vivid orange, vivid yellow, vivid red, vivid green - Size
- Responsively sizes the metric so that it is proportional to the sizing of the value.
Provided values: sm, md, lg, xl
Appearance
- Is Loading
- Shows a loading indicator.
Provided values: on, off - Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the EC2 Instance Manager app blueprint.
Checkbox components have the following properties.
General
- Label
- The text that displays at the top of the component.
Value: string or expression - Options
- The list of checkboxes that a user can select from. The format is an array of objects where each object consists of a
label and value key-value pair. The minimum number of options is 1.
Value: expression
Example:
${[
{
"label": "Staging",
"value": "staging"
},
{
"label": "Production",
"value": "production"
}
]}
Appearance
- Is Multiline
- Determines whether the checkbox text should wrap onto a new line or be truncated by an ellipsis.
Provided values: on, off - Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Container components have the following properties.
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Custom chart components have the following properties.
General
- Vega Specification
- A string representing a valid Vega-Lite or Vega JSON specification.
Appearance
- Is Loading
- Shows a loading indicator.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays property and value pairs in JSON format.
Example
For an example showing how to use this component, see Custom charts.
Date picker components have the following properties.
General
- Label
- The label displayed at the top of the date picker.
Value: string or expression - Tooltip
- The tooltip to display when hovering over the input label. The tooltip can contain markdown.
Value: string or expression - Default Value
- The default date of the date picker, displayed as a UNIX timestamp in milliseconds.
Value: integer - Allow Future Dates
- Determines whether the date can be set after the current day’s date.
Provided values: on, off
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: See State functions.
Inspect data
Displays properties and values in JSON format. Values are displayed both as a UNIX timestamp in milliseconds and ISO (year, month, day, hour, minutes, seconds, and milliseconds).
Date range picker components have the following properties.
General
- Default timeframe
- The default timeframe that the date picker displays.
Provided values: past 5 minutes, past 30 minutes, past 1 hour, past 4 hours, past 1 day
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Divider components have the following properties.
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays properties in JSON format.
File input components have the following properties.
General
- Accepted File Types
- Determines which file types the file input component accepts.
Values: .csv, .json
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Image components have the following properties.
General
- Source
- The image to display. The supported formats are JPG, PNG, and GIF. The maximum upload size is 4 MB.
Values: URL or file
Appearance
- Fit
- Determines the dimensions of the image within the bounds of the image component.
Provided values: fill, contain, cover, none - Padding
- Determines the width of space between the bounds of the image and the bounds of the image component.
Provided values: none, small, medium, large - Vertical Alignment
- Determines the vertical position of the image within the bounds of the image component.
Provided values: align top, align center, align bottom - Horizontal Alignment
- Determines the horizontal position of the image within the bounds of the image component.
Provided values: align left, align center, align right - Border
- Determines whether the image component has a visual border around its edges.
Provided values: on, off - Transparent Background
- Determines whether the background inside the image component is transparent.
Provided values: on, off - Is Loading
- Determines whether a loading icon is displayed while the image is being loaded.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays properties in JSON format.
Integration logo components have the following properties.
General
- Integration Id
- Specifies which integration logo icon to display.
Value: string or expression
Examples: datadog, amazon-s3, postgres, okta
Appearance
- Horizontal Alignment
- Controls the horizontal positioning of the logo within the component.
Provided values: align left, align center, align right - Vertical Alignment
- Controls the vertical positioning of the logo within the component.
Provided values: align top, align center, align bottom - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off - Is Loading
- Shows a loading indicator.
Provided values: on, off
Inspect data
Displays property and value pairs in JSON format.
Form components have the following properties.
General
- Title
- The title of the form.
Value: string or expression - Default value
- The default value that the app populates in the form. To populate a specific field, you can use JSON notation, such as
{"org":"frontend"} to populate the org field with the value frontend.
Value: string or expression
Fields
Each item represents a field in the form. Fields each have one of the following types: textInput, select, textArea, or text.
Fields have some or all of the following properties depending on their field type:
- Field name
- The unique identifier for a field. You can use this identifier to reference the field in an expression.
Value: string or expression - Label
- The label that displays above the field.
Value: string or expression - Content
- The content that displays in a
text field.
Value: string or expression - Options
- The options available in a
select field. Options must be an array of objects, with a const key for the option value and an optional title key for the option label.
Value: Each object’s label and value can be a string or expression.
You can populate each object using the GUI (default), or toggle Raw to use raw JSON input to provide the entire array of objects. - Placeholder text
- The text that displays in a
textInput or textArea field when no value is entered.
Value: string or expression - Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the field is visible in the form.
Provided values: on, off - Is Required
- Determines whether the field is required in order to submit the form.
Provided values: on, off
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off - Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off
Events
- Event
- Value: submit, change, validate
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: form0.setValue({name: 'node-group-1'}) sets the value of the form0 component to {name: 'node-group-1'}.
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
JSON input components have the following properties.
General
- Label
- The text that displays at the top of the component.
- Default value
- The default JSON value that the component displays.
Appearance
- Is Read Only
- Determines whether the component is read only.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Modal components have the following properties.
General
- Title
- The title of the modal.
Value: string or expression
Appearance
- Size
- The scale of the modal.
Provided values: sm, md, lg - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: toggleOpen, close, open
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setIsOpen
Example: modal0.setIsOpen(true) sets the state of modal0 to open.
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Number input components have the following properties.
- Label
- The text that displays at the top of the component.
Value: string or expression - Default value
- The default value that the app populates in the input box.
Value: number or expression that evaluates to a number - Placeholder text
- The text that displays when no value is entered.
Value: string or expression
Validation
- Min
- The minimum value the number input accepts.
Value: number or expression that evaluates to a number - Max
- The maximum value the number input accepts.
Value: number or expression that evaluates to a number
Appearance
- Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: numberInput0.setValue(3) sets the value of the numberInput0 component to 3.
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the ECS Task Manager app blueprint.
Radio components have the following properties.
General
- Label
- The text that displays at the top of the component.
Value: string or expression - Options
- The list of radio button options that a user can select from. The format is an array of objects where each object consists of a
label and value key-value pair.
Value: expression
Example:
${[
{
"label": "Staging",
"value": "staging"
},
{
"label": "Production",
"value": "production"
}
]}
- Default value
- The value that is selected when the radio loads.
Value: string or expression
Appearance
- Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: radioButtons0.setValue("production") sets the value of the radioButtons0 component to "production".
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
React renderer components have the following properties.
General
- React Component Definition
- The code that is executed to create a React component.
- Component Input Props
- The props that are passed to the React component and can be accessed in the props object of the component.
- Initial Component State
- Sets the initial state values for your component. This state is used when the component first renders or if no state has been set yet. The component can access this data through
props.state.
Appearance
- Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: set component state, callback function
- Function Name
- Value:
props.customFunctionName - Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions.
Inspect data
Displays property and value pairs in JSON format.
Relationships
Displays data dependencies between React renderer and components in the app.
Example
For an example showing how to use this component, see React renderer.
Search components have the following properties.
General
- Default value
- The default value that the app populates in the search box.
Value: string or expression - Placeholder text
- The text that displays when no value is entered.
Value: string or expression
Appearance
- Size
- The scale of the search component.
Provided values: sm, md, lg - Is Loading
- Shows a loading indicator.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: change, submit
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: search0.setValue("search query") sets the value of the search0 component to "search query".
See State functions for more information.
For more information on events, see Events.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the EC2 Instance Manager app blueprint.
Select components have the following properties.
General
- Label
- The text that displays at the top of the component.
Value: string or expression - Placeholder text
- The text that displays when no value is entered.
Value: string or expression - Options
- The list of select options that a user can select from. The format is an array of objects where each object consists of a
label and value key-value pair.
Value: expression
Example:
${[
{
"label": "Staging",
"value": "staging"
},
{
"label": "Production",
"value": "production"
}
]}
- Default value
- The value that is selected when the select loads.
Value: string or expression - Is Multiselect
- Determines whether the user can select more than one option at a time.
Provided values: on, off
Appearance
- Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: select0.setValue("staging") sets the value of the select0 component to "staging".
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Side panel components have the following properties.
General
- Title
- The title for the side panel.
Value: string
Appearance
- Width
- Determines the width of the side panel. A percent sign (
%) must be included after the value.
Value: integer - Hide Close Button
- Determines whether side panel displays an X to close the panel.
Provided values: on, off
Events
- Event
- Values: toggle open, close, open
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setIsOpen
Example: sidePanel0.setIsOpen(true) sets the state of sidePanel0 to open.
See State functions for more information.
Inspect data
Displays properties and values in JSON format.
Tab components have the following properties.
Tabs
A list of tab views. Use the + (plus) to add additional views.
Style
- Style
- The coloring style used for the tab component.
Provided values: Default, purple, pink, orange, red, green - Alignment
- The way the tabs are aligned within the tab component.
Provided values: Horizontal (→), vertical (↓) - Impact
- Controls whether the selected tab’s background is fully colored or only a small band at the bottom is colored.
Provided values: High, low
Appearance
- Hide Tabs
- Controls whether the tab markers are displayed.
Provided values: on, off - Hide Body
- Controls whether the body of the tabs are displayed.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Value: change
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setTabIndex
Example: tab0.setTabIndex(0) sets the value of the tab0 component to the first tab.
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Table components have the following properties.
General
- Title
- A title for the table. Select Markdown for custom formatting.
Value: string - Data source
- The array of objects to display in a table.
Values: query, demo data, components
Columns
Each column of data from the data source is represented here and has the following properties:
- Label
- The text that displays at the top of the column.
Value: string or expression - Data path
- JSON path to access values nested within objects and arrays of a given column.
Value: string or expression - Formatting
- The type of format that the column takes on.
Provided values: string, link, status pill, date / time, markdown, tags, percent bar, number, score bar, avatar - Sortable
- Determines whether the user can sort by the column.
- Copyable
- Determines whether the user can click to copy the contents of the column.
Provided values: on, off - Filterable
- Determines whether a filter option is available for the column.
Provided values: on, off
Some columns have additional properties based on their Formatting property.
- Has summary
- Determines whether to display a pagination summary directly above the table.
Provided values: on, off - Page size
- Number of rows per page to display.
Value: number or expression that evaluates to a number - Total count
- Total number of rows to display in the table.
Value: number or expression that evaluates to a number - Type
- Determines the type of pagination.
Provided values: client side, server side
Sorting
- Select the column and direction for default table sorting.
- Column
- The column to sort by.
Value: column name - Direction
- The direction to sort.
Provided values: ascending, descending
Row actions
Adding a row action adds an Actions column to the table, which contains user-defined action buttons. Rows can have multiple actions. Actions have the following properties:
- Label
- The text that displays on the action button.
Value: string or expression - Primary
- Designed to call user attention to the most important action(s) for a given page or workflow.
Provided values: on, off - Borderless
- Removes the border from any button. On hover, it gets a background fill.
Provided values: on, off - Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Level
- Controls the color of the button according to its intent.
Provided values: default, danger, success, warning - Reactions
- The reactions the button triggers. A button can have multiple reactions.
Provided values: download file, open modal, close modal, open side panel, close side panel, open URL, set component state, set state variable value, toast notification, trigger action, custom
Some reaction types have additional properties.
Appearance
- Scrollable
- Determines what ways the table is scrollable in.
Provided values: both, vertical - Is Loading
- Shows a loading indicator.
Provided values: on, off - Has text wrapping
- Determines whether cell text wraps.
Provided values: on, off - Has subrows
- Enables subrows for each row. Include the
subRows property in the data source.
Provided values: on, off - Is searchable
- Determines whether to add a search bar to the table.
Provided values: on, off - Show sort options
- Adds a Sort button to the table that gives users sorting options.
Provided values: on, off - Show column options
- Adds a Columns button to the table for displaying, hiding, or reorganizing table columns.
Provided values: on, off - Has date range filter
- Adds a date range filter to the table.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: pageChange, tableRowClick
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setSelectedRow
Examples:table0.setSelectedRow(0) sets the selectedRow property of table0 to the first row.table0.setSelectedRow(null) clears the selectedRow property.
- setPageIndex
Example: table0.setPageIndex(0) sets the pageIndex property of table0 to the first page.
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
For examples showing how to use advanced features of tables, see Tables.
Text components have the following properties.
General
- Content
- The content that the component displays.
Value: string or expression - Content type
- Determines how to render the text. When Markdown is selected, the text component supports basic Markdown syntax, including images that you host elsewhere.
Provided values: plain text, Markdown
Appearance
- Text alignment
- Determines the horizontal alignment of the text within the component.
Provided values: align left, align center, align right - Vertical alignment
- Determines the vertical alignment of the text within the component.
Provided values: align top, align center, align bottom - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Inspect data
Displays property and value pairs in JSON format.
Relationships
Displays data dependencies between table data and components in the app.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Text area components have the following properties.
- Label
- The text that displays at the top of the component.
Value: string or expression - Default value
- The value that is selected when the text area loads.
Value: string or expression - Placeholder text
- The text that displays when no value is entered.
Value: string or expression
Appearance
- Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: change, submit
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: textArea0.setValue("text") sets the value of the textArea0 component to "text".
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Text input components have the following properties.
- Label
- The text that displays at the top of the component.
Value: string or expression - Default value
- The value that is selected when the text input loads.
Value: string or expression - Placeholder text
- The text that displays when no value is entered.
Value: string or expression
Appearance
- Is Disabled
- Applies disabled styling and removes interactions.
Provided values: on, off - Is Visible
- Determines whether the component is visible to the end-user. In edit mode, all components remain visible.
Provided values: on, off
Events
- Event
- Values: change, submit
- Reaction
- Values: examples include open modal, trigger action, and set component state
See Events for the full list of available reactions. - State Function
- setValue
Example: textInput0.setValue("text") sets the value of the textInput0 component to "text".
See State functions for more information.
Inspect data
Displays property and value pairs in JSON format.
Example
To view this component in context, see the Metrics Explorer & Monitors Builder app blueprint.
Further reading
Documentation, liens et articles supplémentaires utiles:
Do you have questions or feedback? Join the #app-builder channel on the Datadog Community Slack.