User Guide Getting Started Help Center Documentation Community Training
Looker
  
English
Français
Deutsch
日本語
Text Tile Parameters for LookML Dashboards

The parameters described on this page can be used with LookML dashboard elements of type: text.

For information about adding text tiles to a dashboard through the Looker UI, see the Creating User-Defined Dashboards documentation page.

Example Usage

# BASIC PARAMETERS name: element_name type: text height: N width: N top: N left: N row: N col: N # TEXT PARAMETERS title_text: title text subtitle_text: subtitle text body_text: body text

Parameter Definitions

Parameter Name Description
Basic Parameters
name (for elements) Create an element.
type (for elements) Determine the type of visualization to be used in the element.
height (for elements) Define the height of an element in units of tile_size for layout: tile and layout: static dashboards.
width (for elements) Define the width of an element in units of tile_size for layout: tile and layout: static dashboards.
top Define the top-to-bottom position of an element in units of tile_size for layout: static dashboards.
left Define the left-to-right position of an element in units of tile_size for layout: static dashboards.
Text Parameters
title_text Specify a title for a dashboard element of type: text.
subtitle_text Specify a subtitle for a dashboard element of type: text.
body_text Specify body text for a dashboard element of type: text.

Basic Parameters

When defining a LookML dashboard element of type: text, you must specify values for at least the name and type parameters.

name

This section refers to the name parameter that is part of a dashboard element.

name can also be used as part of a dashboard filter, described on the Dashboard Parameters documentation page.

Each name declaration creates a new dashboard element and assigns it a name. Element names must be unique. Names are sometimes referenced in the elements parameter when using layout: grid dashboards.

- name: orders_by_date

type

This section refers to the type parameter that is part of a dashboard element.

type can also be used as part of a dashboard filter, described on the Dashboard Parameters documentation page.

type can also be used as part of a join, described on the type (for Joins) documentation page.

type can also be used as part of a dimension, described on the Dimension, Filter, and Parameter Types documentation page.

type can also be used as part of a measure, described on the Measure Types documentation page.

The type parameter determines the type of visualization to be used in the element.

- name: element_name type: text | looker_grid | table | single_value | looker_single_record | looker_column | looker_bar | looker_scatter | looker_line | looker_area | looker_pie | looker_donut_multiples | looker_funnel | looker_timeline | looker_map | looker_geo_coordinates | looker_geo_choropleth | looker_waterfall | looker_wordcloud | looker_boxplot

See the type (for LookML Dashboards) documentation page for an overview of the different types of LookML dashboard elements.

height

This section refers to the height parameter that is part of a dashboard element.

height can also be used as part of a dashboard row, described on the Dashboard Parameters documentation page.

The height parameter defines the height of an element, in units of tile_size for layout: tile and layout: static dashboards.

For example, the code below specifies tile_size: 100 and height: 4, making the orders_by_date element 400 pixels in height.

- dashboard: sales_overview tile_size: 100 ... elements: - name: orders_by_date height: 4 ...

width

This section refers to the width parameter that is part of a dashboard element.

width can also be used as part of a dashboard, described on the Dashboard Parameters documentation page.

The width parameter defines the width of an element, in units of tile_size for layout: tile and layout: static dashboards.

For example, the code below specifies tile_size: 100 and width: 4, making the orders_by_date element 400 pixels in width.

- dashboard: sales_overview tile_size: 100 ... elements: - name: orders_by_date width: 4 ...

top

The top parameter defines the top-to-bottom position of an element in units of tile_size for layout: static dashboards.

For example, the code below specifies tile_size: 100 and top: 4, positioning the top edge of the orders_by_date element 400 pixels from the top of the dashboard.

- dashboard: sales_overview tile_size: 100 ... elements: - name: orders_by_date top: 4 ...

left

The left parameter defines the left-to-right position of an element in units of tile_size for layout: static dashboards.

For example, the code below specifies tile_size: 100 and left: 4, positioning the left edge of the orders_by_date element 400 pixels from the left side of the dashboard.

- dashboard: sales_overview tile_size: 100 ... elements: - name: orders_by_date left: 4 ...

Text Parameters

The parameters described in this section can be used to add content to a LookML dashboard element of type: text.

title_text

The title_text parameter specifies the text that will appear on a type: text element in the largest font size available. It is shown at the top of the tile.

title_text: title text

subtitle_text

The subtitle_text parameter specifies the text that will appear on a type: text element in the middle font size available. If title_text is present, the subtitle_text will appear below it.

subtitle_text: subtitle text

body_text

The body_text parameter specifies the text that will appear on a type: text element in the smallest font size available. It is shown last in the text file. The Using Markdown in Text Tiles documentation page provides an overview of Markdown you can use to format text or add links and images to a text tile.

body_text: body text

Top