Class orion.editor.TextViewOptions
This object describes the options for the text view.
See:
orion.editor.TextView
orion.editor.TextView#setOptions
orion.editor.TextView#getOptions	 
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js>.
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Field Attributes | Field Name and Description | 
|---|---|
| 
								
								 whether or not to show the block cursor. 
							 | 
						|
| 
								
								 whether or not the tab key inserts white spaces. 
							 | 
						|
| 
								
								 whether or not the view is in full selection mode. 
							 | 
						|
| 
								
								 the offset in a line where the print margin should be displayed. 
							 | 
						|
| 
								
								 the text model for the view. 
							 | 
						|
| 
								
								 whether or not the view is in insert/overwrite mode. 
							 | 
						|
| 
								
								 the parent element for the view, it can be either a DOM element or an ID for a DOM element. 
							 | 
						|
| 
								
								 whether or not the view is read-only. 
							 | 
						|
| 
								
								 the time duration in miliseconds for scrolling animation. 
							 | 
						|
| 
								
								 whether or not the editor is in single line mode. 
							 | 
						|
| 
								
								 whether or not the tab keypress is consumed by the view or is used for focus traversal. 
							 | 
						|
| 
								
								 The number of spaces in a tab. 
							 | 
						|
| 
								
								 the TextTheme manager. 
							 | 
						|
| 
								
								 the CSS class for the view theming. 
							 | 
						|
| 
								
								 whether or not the view is wrappable. 
							 | 
						|
| 
								
								 whether or not the view wraps lines. 
							 | 
						|
| 
								
								 the offset in a line where text should wrap. 
							 | 
						
					Field Detail
				
				
					 
					
					
					{Boolean}
					blockCursorVisible
					
					
					
						whether or not to show the block cursor.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Boolean}
					expandTab
					
					
					
						whether or not the tab key inserts white spaces.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Boolean}
					fullSelection
					
					
					
						whether or not the view is in full selection mode.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - true
 
					
					{Number}
					marginOffset
					
					
					
						the offset in a line where the print margin should be displayed. 
					
					
						
						
						
						
							0 means no print margin.
						
						
					- Default Value:
 - 0
 
					
					{orion.editor.TextModel}
					model
					
					
					
						the text model for the view. If it is not set the view creates an empty orion.editor.TextModel.
						
						
					
					
					
						
						
						
						
					
					
					{Boolean}
					overwriteMode
					
					
					
						whether or not the view is in insert/overwrite mode.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{String|DOMElement}
					parent
					
					
					
						the parent element for the view, it can be either a DOM element or an ID for a DOM element.
						
						
					
					
					
						
						
						
						
					
					
					{Boolean}
					readonly
					
					
					
						whether or not the view is read-only.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Number}
					scrollAnimation
					
					
					
						the time duration in miliseconds for scrolling animation. 
					
					
						
						
						
						
							0 means no animation.
						
						
					- Default Value:
 - 0
 
					
					{Boolean}
					singleMode
					
					
					
						whether or not the editor is in single line mode.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Boolean}
					tabMode
					
					
					
						whether or not the tab keypress is consumed by the view or is used for focus traversal.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - true
 
					
					{Number}
					tabSize
					
					
					
						The number of spaces in a tab.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - 8
 
					
					{orion.editor.TextTheme}
					theme
					
					
					
						the TextTheme manager. TODO more info on this
						
						
					
					
					
						
						
						
						
							- Default Value:
 - orion.editor.TextTheme.getTheme()
 
					
					{String}
					themeClass
					
					
					
						the CSS class for the view theming.
						
						
					
					
					
						
						
						
						
					
					
					{Boolean}
					wrapable
					
					
					
						whether or not the view is wrappable.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Boolean}
					wrapMode
					
					
					
						whether or not the view wraps lines.
						
						
					
					
					
						
						
						
						
							- Default Value:
 - false
 
					
					{Number}
					wrapOffset
					
					
					
						the offset in a line where text should wrap. 
					
					
						
						
						
						
							0 means wrap at the client area right edge.
						
						
					- Default Value:
 - 0