Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class App extends Component {
fontSize: 14,
lineHeight: 19,
showGutter: true,
enableMobileMenu: true,
showPrintMargin: true,
highlightActiveLine: true,
enableSnippets: false,
Expand Down Expand Up @@ -253,6 +254,23 @@ class App extends Component {
Enable Live Autocomplete
</label>
</p>
</div>
<div className="field">
<p className="control">
<label className="checkbox">
<input
type="checkbox"
checked={this.state.enableMobileMenu}
onChange={e =>{
this.setBoolean(
"enableMobileMenu",
e.target.checked
)
}}
/>
Enable Mobile Menue
</label>
</p>
</div>
<div className="field">
<p className="control">
Expand Down Expand Up @@ -346,6 +364,7 @@ class App extends Component {
setOptions={{
useWorker: false,
enableBasicAutocompletion: this.state.enableBasicAutocompletion,
enableMobileMenu: this.state.enableMobileMenu,
enableLiveAutocompletion: this.state.enableLiveAutocompletion,
enableSnippets: this.state.enableSnippets,
showLineNumbers: this.state.showLineNumbers,
Expand Down Expand Up @@ -376,6 +395,7 @@ class App extends Component {
enableBasicAutocompletion: ${this.state.enableBasicAutocompletion},
enableLiveAutocompletion: ${this.state.enableLiveAutocompletion},
enableSnippets: ${this.state.enableSnippets},
enableMobileMenu: ${this.state.enableMobileMenu},
showLineNumbers: ${this.state.showLineNumbers},
tabSize: 2,
}}/>
Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"react"
],
"dependencies": {
"ace-builds": "^1.32.8",
"ace-builds": "^1.36.3",
"diff-match-patch": "^1.0.5",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/ace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface IAceEditorProps {
debounceChangePeriod?: number;
enableBasicAutocompletion?: boolean | string[];
enableLiveAutocompletion?: boolean | string[];
enableMobileMenu?: boolean;
tabSize?: number;
value?: string;
placeholder?: string;
Expand Down
Loading