projects/m2-core/src/lib/widget-modules/input/sdi-textarea.component.ts
| selector | sdi-textarea |
| styles |
.sdi-textarea {
height: 100%;
min-height: 1.5em;
overflow-x: hidden;
overflow-y: auto;
border: 1px solid #CCC;
padding: .5em;
}
|
| template | |
Properties |
|
Methods |
|
Inputs |
Outputs |
| keyBoardInputAsHtml |
Type : boolean
|
Default value : true
|
| style |
Type : Partial<CSSStyleDeclaration>
|
| styleClasses |
Type : string
|
| placeholder |
Type : string
|
| readonly |
Type : boolean
|
| text |
Type : string
|
| enterKeyUp |
Type : EventEmitter
|
| textChange |
Type : EventEmitter
|
| onBlur | ||||||
onBlur(event: FocusEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onInput | ||||
onInput(event)
|
||||
|
Parameters :
Returns :
void
|
| onKeyup | ||||||
onKeyup(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onPaste | ||||||
onPaste(event: ClipboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onTextInput | ||||||
onTextInput(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| Protected updateView |
updateView()
|
|
Returns :
void
|
| Public focus | ||||||
focus(options?: FocusOptions)
|
||||||
|
Parameters :
Returns :
void
|
| onFocus | ||||||
onFocus(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| onMousedown |
onMousedown()
|
|
Returns :
void
|
| Protected restoreSelection | ||||||
restoreSelection(savedSelection: TextSelection)
|
||||||
|
Parameters :
Returns :
void
|
| contenteditableRef |
Type : ElementRef<HTMLElement>
|
Decorators :
@ViewChild('contenteditableRef', {static: true})
|
| Protected hasJustBeenEdited |
Type : boolean
|
| Protected Optional prevSelection |
Type : TextSelection
|
| textValue |
Type : string
|
Default value : ''
|