projects/m2-core/src/lib/shared/ui-components/input/highlighted-input.component.ts
| selector | highlighted-input |
| styles |
.highlighted-input {
line-height: 1.6;
min-height: 2em;
border: 2px solid transparent;
border-left: 0;
border-right: 0;
padding: 1px 0;
white-space: nowrap;
overflow: hidden;
}
.highlighted-input.allow-wrap {
white-space: normal;
}
.highlighted-input:not(:focus) {
text-overflow: ellipsis;
}
|
| template | |
Properties |
|
Methods |
|
Inputs |
Outputs |
| allowWrap |
Type : boolean
|
Default value : true
|
| highlight |
Type : boolean
|
Default value : true
|
| placeholder |
Type : string
|
| readonly |
Type : boolean
|
| text |
Type : string
|
| hlBlur |
Type : EventEmitter
|
| hlDblClick |
Type : EventEmitter
|
| hlEnterKeyUp |
Type : EventEmitter
|
| hlEscapeKeyUp |
Type : EventEmitter
|
| hlFocus |
Type : EventEmitter
|
| hlInput |
Type : EventEmitter
|
| hlKeyDown |
Type : EventEmitter
|
| hlPaste |
Type : EventEmitter
|
| textChange |
Type : EventEmitter
|
| onBlur | ||||||
onBlur(event: FocusEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onDblClick | ||||||
onDblClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onEnterKeyUp | ||||||
onEnterKeyUp(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onEscapeKeyUp | ||||||
onEscapeKeyUp(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onFocus | ||||||
onFocus(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| onInput | ||||||
onInput(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| onKeyDown | ||||||
onKeyDown(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onTextInput | ||||||
onTextInput(event: Event)
|
||||||
|
Parameters :
Returns :
void
|
| Protected updateView |
updateView()
|
|
Returns :
void
|
| Public focus | ||||||
focus(options?: FocusOptions)
|
||||||
|
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 : ''
|