forked from deephaven/web-client-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditors.tsx
More file actions
26 lines (24 loc) · 773 Bytes
/
Editors.tsx
File metadata and controls
26 lines (24 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';
import { Editor } from '@deephaven/console';
import Constants from './StyleConstants';
import SampleSection from './SampleSection';
function Editors(): React.ReactElement {
return (
<SampleSection name="editors">
<h2 className="ui-title">Editor</h2>
<h5 className="sub-title">Python</h5>
<div style={{ height: 400, position: 'relative' }}>
<Editor
settings={{ language: 'python', value: Constants.testPython }}
/>
</div>
<h5 className="sub-title">Groovy</h5>
<div style={{ height: 400, position: 'relative' }}>
<Editor
settings={{ language: 'groovy', value: Constants.testGroovy }}
/>
</div>
</SampleSection>
);
}
export default Editors;