• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-angular-wrappers / 4427504397

pending completion
4427504397

push

github

GitHub
Update README.md

281 of 305 branches covered (92.13%)

Branch coverage included in aggregate %.

668 of 713 relevant lines covered (93.69%)

219.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/projects/igniteui-angular-wrappers/src/lib/igeditors/igtexteditor.component.ts
1
import { Component, ElementRef, IterableDiffers, Optional, KeyValueDiffers, ChangeDetectorRef, Renderer2 } from '@angular/core';
2
import { IgEditorBase } from './igeditorbase';
3
import { NgModel } from '@angular/forms';
4

5
@Component({
6
    selector: 'ig-text-editor',
7
    template: '<ng-content></ng-content>',
8
    inputs: ['widgetId', 'options', 'changeDetectionInterval', 'disabled', 'create', 'width', 'height', 'value', 'tabIndex', 'allowNullValue', 'nullValue', 'inputName', 'readOnly', 'validatorOptions', 'buttonType', 'listItems', 'listWidth', 'listItemHoverDuration', 'dropDownAttachedToBody', 'dropDownAnimationDuration', 'visibleItemsCount', 'includeKeys', 'excludeKeys', 'textAlign', 'placeHolder', 'selectionOnFocus', 'textMode', 'spinWrapAround', 'isLimitedToListValues', 'revertIfNotValid', 'preventSubmitOnEnter', 'dropDownOrientation', 'maxLength', 'dropDownOnReadOnly', 'toUpper', 'toLower', 'locale', 'suppressNotifications'],
9
    outputs: ['rendering', 'rendered', 'mousedown', 'mouseup', 'mousemove', 'mouseover', 'mouseout', 'blur', 'focus', 'keydown', 'keypress', 'keyup', 'valueChanging', 'valueChanged', 'dropDownListOpening', 'dropDownListOpened', 'dropDownListClosing', 'dropDownListClosed', 'dropDownItemSelecting', 'dropDownItemSelected', 'textChanged']
10
})
11
export class IgTextEditorComponent extends IgEditorBase<IgTextEditor> {
1✔
12
    constructor(el: ElementRef, renderer: Renderer2, differs: IterableDiffers, kvalDiffers: KeyValueDiffers,
13
                cdr: ChangeDetectorRef, @Optional() public model: NgModel) {
6✔
14
      super(el, renderer, differs, kvalDiffers, cdr, model);
6✔
15
    }
16

17
    /**
18
     * Changes the all locales into the widget element to the language specified in [options.language](ui.igtexteditor#options:language)
19
     * Note that this method is for rare scenarios, see [language](ui.igtexteditor#options:language) or
20
     * [locale](ui.igtexteditor#options:locale) option setter
21
     */
22
    /* istanbul ignore next */
23
    public changeLocale(): void { return; }
24

25
    /**
26
     * Gets the visible text in the editor.
27
     */
28
    /* istanbul ignore next */
29
    public displayValue(): string { return; }
30

31
    /**
32
     * Gets reference to jquery object which is used as container of drop-down list.
33
     */
34
    /* istanbul ignore next */
35
    public dropDownContainer(): string { return; }
36

37
    /**
38
     * Shows the drop down list.
39
     */
40
    /* istanbul ignore next */
41
    public showDropDown(): void { return; }
42

43
    /**
44
     * Hides the drop down list.
45
     */
46
    /* istanbul ignore next */
47
    public hideDropDown(): void { return; }
48

49
    /**
50
     * Returns a reference to the drop-down button UI element of the editor.
51
     */
52
    /* istanbul ignore next */
53
    public dropDownButton(): string { return; }
54

55
    /**
56
     * Returns if the drop-down list is visible.
57
     */
58
    /* istanbul ignore next */
59
    public dropDownVisible(): boolean { return; }
60

61
    /**
62
     * Returns a reference to the clear button UI element of the editor.
63
     */
64
    /* istanbul ignore next */
65
    public clearButton(): string { return; }
66

67
    /**
68
     * Finds index of list item by text that matches with the search parameters.
69
     *
70
     * @param text The text to search for in the drop down list.
71
     * @param matchType The rule that is applied for searching the text.
72
     */
73
    /* istanbul ignore next */
74
    public findListItemIndex(text: string, matchType?: object): number { return; }
75

76
    /**
77
     * Gets the index of the selected list item. Sets selected item by index.
78
     *
79
     * @param index The index of the item that needs to be selected.
80
     */
81
    /* istanbul ignore next */
82
    public selectedListIndex(index?: number): number { return; }
83

84
    /**
85
     * Gets the selected list item.
86
     */
87
    /* istanbul ignore next */
88
    public getSelectedListItem(): string { return; }
89

90
    /**
91
     * Gets the selected text from the editor in edit mode. This can be done inside key event handlers, like keydown or keyup.
92
     * This method can be used only when the editor is focused.
93
     * If you invoke this method in display mode, when the editor input is blurred, the returned value will be an empty string.
94
     */
95
    /* istanbul ignore next */
96
    public getSelectedText(): string { return; }
97

98
    /**
99
     * Gets the start index of the selected text in the editor.
100
     */
101
    /* istanbul ignore next */
102
    public getSelectionStart(): number { return; }
103

104
    /**
105
     * Gets the end index of the selected text in the editor.
106
     */
107
    /* istanbul ignore next */
108
    public getSelectionEnd(): number { return; }
109

110
    /**
111
     * Inserts the text at the location of the caret or over the current selection.
112
     * If the editor is focused the method will insert the text over the current selection.
113
     * If the editor is not focused the method will set the text as value of the editor.
114
     * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event.
115
     *
116
     * @param value The string to be inserted.
117
     */
118
    /* istanbul ignore next */
119
    public insert(value: string): void { return; }
120

121
    /**
122
     * Selects the text between start and end indices in the editor.
123
     * If the parameters are equal, then the method sets location of caret. The method has effect only when the editor has focus.
124
     *
125
     * @param start Start of the selection.
126
     * @param end End of the selection.
127
     */
128
    /* istanbul ignore next */
129
    public select(start: number, end: number): void { return; }
130

131
    /**
132
     * Selects the previous item from the drop-down list.
133
     */
134
    /* istanbul ignore next */
135
    public spinUp(): void { return; }
136

137
    /**
138
     * Selects the next item from the drop-down list.
139
     */
140
    /* istanbul ignore next */
141
    public spinDown(): void { return; }
142

143
    /**
144
     * Returns a reference to the spin up UI element of the editor.
145
     */
146
    /* istanbul ignore next */
147
    public spinUpButton(): string { return; }
148

149
    /**
150
     * Returns a reference to the spin down UI element of the editor.
151
     */
152
    /* istanbul ignore next */
153
    public spinDownButton(): string { return; }
154

155
    /**
156
     * Gets/Sets name attribute applied to the editor element.
157
     *
158
     * @param newValue The new input name.
159
     */
160
    /* istanbul ignore next */
161
    public inputName(newValue?: string): string { return; }
162

163
    public value(newValue: object): void { return; }
×
164

165
    /**
166
     * Gets the input element of the editor.
167
     */
168
    /* istanbul ignore next */
169
    public field(): string { return; }
170

171
    /**
172
     * Gets a reference to the jQuery element that wraps the editor.
173
     */
174
    /* istanbul ignore next */
175
    public editorContainer(): string { return; }
176

177
    /**
178
     * Gets whether the editor has focus.
179
     */
180
    /* istanbul ignore next */
181
    public hasFocus(): boolean { return; }
182

183
    /**
184
     * Sets focus to the editor after the specified delay.
185
     *
186
     * @param delay The delay before focusing the editor.
187
     */
188
    /* istanbul ignore next */
189
    public setFocus(delay?: number): void { return; }
190

191
    /**
192
     * Hides the editor.
193
     */
194
    /* istanbul ignore next */
195
    public hide(): void { return; }
196

197
    /**
198
     * Shows the editor.
199
     */
200
    /* istanbul ignore next */
201
    public show(): void { return; }
202

203
    /**
204
     * Gets a reference to [igValidator](ui.igvalidator) used by the editor.
205
     */
206
    /* istanbul ignore next */
207
    public validator(): object { return; }
208

209
    /**
210
     * Checks if the value in the editor is valid. Note: This function will not trigger automatic notifications.
211
     */
212
    /* istanbul ignore next */
213
    public isValid(): boolean { return; }
214

215
    /**
216
     * Triggers validation for the editor. If validatorOptions are set will also call validate on the [igValidator](ui.igvalidator).
217
     */
218
    /* istanbul ignore next */
219
    public validate(): boolean { return; }
220

221
    /**
222
     * Destroys the widget
223
     */
224
    /* istanbul ignore next */
225
    public destroy(): void { return; }
226
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc