메모 및 링크 위젯은 자유 텍스트 위젯과 비슷하지만 더 많은 서식 및 표시 옵션이 포함되어 있습니다.
구성
- 표시할 텍스트를 입력합니다. 마크다운이 지원됩니다.
- 프리셋 템플릿을 선택하거나 표시 옵션을 맞춤 설정합니다.
- 텍스트 크기와 위젯의 배경색을 선택합니다.
- 텍스트 위치를 조정하려면 Alignment 버튼을 클릭합니다. 패딩을 포함하지 않으려면 No Padding을 클릭합니다.
- 포인터를 포함하려면 Show Pointer를 클릭하고 드롭다운 메뉴에서 포지션을 선택합니다.
위젯을 만들 준비가 되면 Save를 클릭합니다.
이 위젯은 템플릿 변수를 지원합니다. {TX-PL-LABEL}lt;VARIABLE_NAME>.value
구문을 사용하여 위젯 콘텐츠를 동적으로 업데이트합니다.
이 예시에서 $env.value
은(는) 선택한 환경에 대한 링크 값을 업데이트합니다.
API
이 위젯은 Dashboards API와 함께 사용할 수 있습니다. 자세한 내용은 대시보드 API 가이드를 참조하세요.
메모 위젯 전용 위젯 JSON 스키마 정의는 다음과 같습니다.
Expand All
Background color of the note.
Whether to add padding or not.
default: true
Whether to show a tick or not.
How to align the text on the widget.
Allowed enum values: center,left,right
Define how you want to align the text on the widget.
Allowed enum values: bottom,left,right,top
Where to position the tick on an edge.
Type of the note widget.
Allowed enum values: note
default: note
Vertical alignment.
Allowed enum values: center,top,bottom
{
"background_color": "string",
"content": "",
"font_size": "string",
"has_padding": false,
"show_tick": false,
"text_align": "string",
"tick_edge": "string",
"tick_pos": "string",
"type": "note",
"vertical_align": "string"
}
Additional helpful documentation, links, and articles: