Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplescrollbar addon #129

Open
bezreyhan opened this issue Sep 11, 2017 · 0 comments
Open

simplescrollbar addon #129

bezreyhan opened this issue Sep 11, 2017 · 0 comments

Comments

@bezreyhan
Copy link

bezreyhan commented Sep 11, 2017

I've been trying to get the simplescrollbar addon to work, but have not been successful. I am using V1.0

My imports look like the following:

import * as React from 'react';
import * as CodeMirror from 'react-codemirror';
import 'codemirror/addon/scroll/simplescrollbars.js';
import 'codemirror/addon/scroll/simplescrollbars.css';

My component looks like the following:

<CodeMirror
     value={JSON.stringify(this.props.json, null, 2)}
     options={{
          readOnly: true,
          lineNumbers: true,
          scrollbarStyle: 'simple'
      }}
/>

Is there something I am doing incorrectly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant