InputElement.hx 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * Copyright (C)2005-2015 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla/HTMLInputElement.webidl line 24:0. Do not edit!
  23. package js.html;
  24. @:native("HTMLInputElement")
  25. extern class InputElement extends Element
  26. {
  27. var accept : String;
  28. var alt : String;
  29. var autocomplete : String;
  30. var autofocus : Bool;
  31. var defaultChecked : Bool;
  32. var checked : Bool;
  33. var disabled : Bool;
  34. var form(default,null) : FormElement;
  35. var files(default,null) : FileList;
  36. var formAction : String;
  37. var formEnctype : String;
  38. var formMethod : String;
  39. var formNoValidate : Bool;
  40. var formTarget : String;
  41. var height : Int;
  42. var indeterminate : Bool;
  43. var list(default,null) : Element;
  44. var max : String;
  45. var maxLength : Int;
  46. var min : String;
  47. var multiple : Bool;
  48. var name : String;
  49. var pattern : String;
  50. var placeholder : String;
  51. var readOnly : Bool;
  52. var required : Bool;
  53. var size : Int;
  54. var src : String;
  55. var step : String;
  56. var type : String;
  57. var defaultValue : String;
  58. var value : String;
  59. var valueAsNumber : Float;
  60. var width : Int;
  61. var willValidate(default,null) : Bool;
  62. var validity(default,null) : ValidityState;
  63. var validationMessage(default,null) : String;
  64. var selectionStart : Int;
  65. var selectionEnd : Int;
  66. var selectionDirection : String;
  67. var align : String;
  68. var useMap : String;
  69. var textLength(default,null) : Int;
  70. /** @throws DOMError */
  71. function stepUp( ?n : Int = 1 ) : Void;
  72. /** @throws DOMError */
  73. function stepDown( ?n : Int = 1 ) : Void;
  74. function checkValidity() : Bool;
  75. function setCustomValidity( error : String ) : Void;
  76. function select() : Void;
  77. /** @throws DOMError */
  78. @:overload( function( replacement : String ) : Void {} )
  79. function setRangeText( replacement : String, start : Int, end : Int, ?selectionMode : SelectionMode = "preserve" ) : Void;
  80. /** @throws DOMError */
  81. function setSelectionRange( start : Int, end : Int, ?direction : String ) : Void;
  82. }