-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Ui: preparation for HDS adoption to replace <Modal> #23353
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import Modifier from 'ember-modifier'; | |
|
||
import 'codemirror/addon/edit/matchbrackets'; | ||
import 'codemirror/addon/selection/active-line'; | ||
import 'codemirror/addon/display/autorefresh'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [docs] When a modal renders the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think it would be necessary in scenarios other than in a modal where the container value is passed to set the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah - that was my thinking. For now, it seemed okay to have autoRefresh rely on container. But since container could refer to a flyout, dropdown, or maybe even a card - we may want to separate the args in the future! |
||
import 'codemirror/addon/lint/lint.js'; | ||
import 'codemirror/addon/lint/json-lint.js'; | ||
// right now we only use the ruby and javascript, if you use another mode you'll need to import it. | ||
|
@@ -62,6 +63,7 @@ export default class CodeMirrorModifier extends Modifier { | |
theme: namedArgs.theme || 'hashi', | ||
value: namedArgs.content || '', | ||
viewportMargin: namedArgs.viewportMargin || '', | ||
autoRefresh: namedArgs.autoRefresh, | ||
}); | ||
|
||
editor.on('change', bind(this, this._onChange, namedArgs)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks for documenting this!