InputElement.hx 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * Copyright (C)2005-2018 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. Do not edit!
  23. package js.html;
  24. /**
  25. The `HTMLInputElement` interface provides special properties and methods for manipulating the layout and presentation of input elements.
  26. Documentation [HTMLInputElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement>
  28. **/
  29. @:native("HTMLInputElement")
  30. extern class InputElement extends Element
  31. {
  32. var accept : String;
  33. var alt : String;
  34. var autocomplete : String;
  35. var autofocus : Bool;
  36. var defaultChecked : Bool;
  37. var checked : Bool;
  38. var disabled : Bool;
  39. var form(default,null) : FormElement;
  40. var files : FileList;
  41. var formAction : String;
  42. var formEnctype : String;
  43. var formMethod : String;
  44. var formNoValidate : Bool;
  45. var formTarget : String;
  46. var height : Int;
  47. var indeterminate : Bool;
  48. var list(default,null) : Element;
  49. var max : String;
  50. var maxLength : Int;
  51. var min : String;
  52. var minLength : Int;
  53. var multiple : Bool;
  54. var name : String;
  55. var pattern : String;
  56. var placeholder : String;
  57. var readOnly : Bool;
  58. var required : Bool;
  59. var size : Int;
  60. var src : String;
  61. var step : String;
  62. var type : String;
  63. var defaultValue : String;
  64. var value : String;
  65. var valueAsDate : Date;
  66. var valueAsNumber : Float;
  67. var width : Int;
  68. var willValidate(default,null) : Bool;
  69. var validity(default,null) : ValidityState;
  70. var validationMessage(default,null) : String;
  71. var labels(default,null) : NodeList;
  72. var selectionStart : Int;
  73. var selectionEnd : Int;
  74. var selectionDirection : String;
  75. /**
  76. `string:` represents the alignment of the element. Use CSS instead.
  77. **/
  78. var align : String;
  79. /**
  80. `string:` represents a client-side image map.
  81. **/
  82. var useMap : String;
  83. var textLength(default,null) : Int;
  84. /**
  85. Increments the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  86. if the method is not applicable to for the current `type` value.,
  87. if the element has no `step` value,
  88. if the `value` cannot be converted to a number,
  89. if the resulting value is above the `max` or below the `min`.
  90. @throws DOMError
  91. **/
  92. function stepUp( ?n : Int = 1 ) : Void;
  93. /**
  94. Decrements the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  95. if the method is not applicable to for the current `type` value,
  96. if the element has no `step` value,
  97. if the `value` cannot be converted to a number,
  98. if the resulting value is above the `max` or below the `min`. 
  99. @throws DOMError
  100. **/
  101. function stepDown( ?n : Int = 1 ) : Void;
  102. function checkValidity() : Bool;
  103. function reportValidity() : Bool;
  104. function setCustomValidity( error : String ) : Void;
  105. function select() : Void;
  106. /** @throws DOMError */
  107. @:overload( function( replacement : String ) : Void {} )
  108. function setRangeText( replacement : String, start : Int, end : Int, ?selectionMode : SelectionMode = "preserve" ) : Void;
  109. /** @throws DOMError */
  110. function setSelectionRange( start : Int, end : Int, ?direction : String ) : Void;
  111. }