mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Improving TextAreaControl to support code and modal (#2988)
This commit is contained in:
committed by
GitHub
parent
b9915e7ecf
commit
7e5e229f48
@@ -828,8 +828,10 @@ export const controls = {
|
||||
markup_type: {
|
||||
type: 'SelectControl',
|
||||
label: 'Markup Type',
|
||||
clearable: false,
|
||||
choices: formatSelectOptions(['markdown', 'html']),
|
||||
default: 'markdown',
|
||||
validators: [v.nonEmpty],
|
||||
description: 'Pick your favorite markup language',
|
||||
},
|
||||
|
||||
@@ -867,6 +869,9 @@ export const controls = {
|
||||
type: 'TextAreaControl',
|
||||
label: 'Code',
|
||||
description: 'Put your code here',
|
||||
mapStateToProps: state => ({
|
||||
language: state.controls ? state.controls.markup_type.value : null,
|
||||
}),
|
||||
default: '',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user