|
316 | 316 | inputBlurAction: function() {
|
317 | 317 | // re-fire non-bubbling event
|
318 | 318 | this.fire('blur', null, this, false);
|
| 319 | + }, |
| 320 | + |
| 321 | + blur: function() { |
| 322 | + // forward blur method to the internal input / textarea element |
| 323 | + this.$.input.blur(); |
| 324 | + }, |
| 325 | + |
| 326 | + click: function() { |
| 327 | + // forward click method to the internal input / textarea element |
| 328 | + this.$.input.click(); |
| 329 | + }, |
| 330 | + |
| 331 | + focus: function() { |
| 332 | + // forward focus method to the internal input / textarea element |
| 333 | + this.$.input.focus(); |
| 334 | + }, |
| 335 | + |
| 336 | + select: function() { |
| 337 | + // forward select method to the internal input / textarea element |
| 338 | + this.$.input.focus(); |
| 339 | + }, |
| 340 | + |
| 341 | + setSelectionRange: function( selectionStart, selectionEnd, selectionDirection ) { |
| 342 | + // forward setSelectionRange method to the internal input / textarea element |
| 343 | + this.$.input.setSelectionRange( selectionStart, selectionEnd, selectionDirection ); |
| 344 | + }, |
| 345 | + |
| 346 | + setRangeText: function( replacement, start, end, selectMode ) { |
| 347 | + // forward setRangeText method to the internal input element |
| 348 | + if ( !this.multiline ) { |
| 349 | + this.$.input.setRangeText( replacement, start, end, selectMode ); |
| 350 | + } |
| 351 | + }, |
| 352 | + |
| 353 | + stepDown: function( n ) { |
| 354 | + // forward stepDown method to the internal input element |
| 355 | + if ( !this.multiline ) { |
| 356 | + this.$.input.stepDown( n ); |
| 357 | + } |
| 358 | + }, |
| 359 | + |
| 360 | + stepUp: function( n ) { |
| 361 | + // forward stepUp method to the internal input element |
| 362 | + if ( !this.multiline ) { |
| 363 | + this.$.input.stepUp( n ); |
| 364 | + } |
319 | 365 | }
|
320 | 366 |
|
321 | 367 | });
|
|
0 commit comments