IEditor | @jupyterlab (original) (raw)
Hierarchy (View Summary)
- ISelectionOwner
- IDisposable
- IEditor
Implemented by
Index
Properties
Readonly
charWidth
charWidth: number
Readonly
edgeRequested
Readonly
host
Readonly
isDisposed
isDisposed: boolean
Readonly
lineCount
lineCount: number
Readonly
lineHeight
lineHeight: number
Readonly
model
uuid
uuid: string
Methods
blur
- blur(): void
Returns void
clearHistory
- clearHistory(): void
Returns void
dispose
- dispose(): void
Returns void
focus
- focus(): void
Returns void
getCoordinateForPosition
- getCoordinateForPosition(position: IPosition): null | ICoordinate
ICoordinate
Returns null |
The coordinates of the position.
getCursorPosition
getLine
- getLine(line: number): undefined | string
Returns undefined | string
The value of the line.
Notes
Lines are 0-based, and accessing a line out of range returnsundefined
.
getOffsetAt
- getOffsetAt(position: IPosition): number
Returns number
The offset at the position, clamped to the extent of the editor contents.
getOption
- getOption(option: string): unknown
Returns unknown
getPositionAt
The position at the offset, clamped to the extent of the editor contents.
getPositionForCoordinate
- getPositionForCoordinate(coordinate: ICoordinate): null | IPosition
IPosition
Returns null |
The position of the coordinates, or null if not contained in the editor.
getSelection
getSelections
getTokenAt
- getTokenAt(offset: number): CodeEditor.IToken
CodeEditor.IToken
Returns
getTokenAtCursor
- getTokenAtCursor(): CodeEditor.IToken
CodeEditor.IToken
Returns
getTokens
- getTokens(): CodeEditor.IToken[]
CodeEditor.IToken[]
Returns
hasFocus
- hasFocus(): boolean
Returns boolean
injectExtension
- injectExtension(ext: Extension): void
Alpha
Experimental
Returns void
newIndentedLine
- newIndentedLine(): void
Returns void
redo
- redo(): void
Returns void
Optional
replaceSelection
- replaceSelection(text: string): void
Returns void
revealPosition
- revealPosition(position: IPosition): void
Returns void
revealSelection
- revealSelection(selection: IRange): void
Returns void
setBaseOptions
Returns void
setCursorPosition
- setCursorPosition(position: IPosition, options?: { scroll?: boolean }): void
Parameters
- position: IPosition
Optional
options: { scroll?: boolean }
Returns void
setOption
- setOption(option: string, value: unknown): void
Parameters
- option: string
- value: unknown
Returns void
setOptions
Returns void
setSelection
- setSelection(selection: IRange): void
Returns void
setSelections
Returns void
undo
- undo(): void
Returns void