Skip to content

Instantly share code, notes, and snippets.

View pranshuagrawal's full-sized avatar
🙅‍♂️
Building stuff...

Pranshu Agrawal pranshuagrawal

🙅‍♂️
Building stuff...
View GitHub Profile
const EditorComponent = ({details, setDetails}) => {
const [editorState, setEditorState] = React.useState(
EditorState.createEmpty()
);
React.useEffect(() => {
setEditorState(
details.editorContent
? EditorState.createWithContent(
convertFromRaw(details.editorContent)
var x = 10;
name: Frrole Widget
description: Frrole Widget
authors:
- Pranshu Agrawal
resources:
- http://dev.frrole.com/views/apps/github/script.js
- http://dev.frrole.com/views/apps/github/style.css
normalize_css: no
wrap: b
panel_js: 0
<div id="container-frrole-timeseries" style="width:90%"></div>
<div id="container-frrole-timeseries2" style="width:90%"></div>
<!-- Javascript Code -->
<script>
var _z_frr_timeseries_cr_options = [{
widget_container_id : 'container-frrole-timeseries',
widget_id: '44',
theme: 'line'
},{