Update widget documentation
This commit is contained in:
@ -3,6 +3,11 @@ group: Widgets
|
||||
title: Code
|
||||
weight: 11
|
||||
---
|
||||
## Overview
|
||||
|
||||
- **Name**: `code`
|
||||
- **UI**: Codemirror editor
|
||||
- **Data type**: `string` or `{ code: 'My code here', lang: 'javascript' }`
|
||||
|
||||
The code widget provides a code editor (powered by [Codemirror](https://codemirror.net)) with optional syntax awareness. Can output the raw code value or an object with the selected language and the raw code value.
|
||||
|
||||
|
Reference in New Issue
Block a user