InputElement.hx 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * Copyright (C)2005-2019 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. var accept : String;
  32. var alt : String;
  33. var autocomplete : String;
  34. var autofocus : Bool;
  35. var defaultChecked : Bool;
  36. var checked : Bool;
  37. var disabled : Bool;
  38. var form(default,null) : FormElement;
  39. var files : FileList;
  40. var formAction : String;
  41. var formEnctype : String;
  42. var formMethod : String;
  43. var formNoValidate : Bool;
  44. var formTarget : String;
  45. var height : Int;
  46. var indeterminate : Bool;
  47. var list(default,null) : Element;
  48. var max : String;
  49. var maxLength : Int;
  50. var min : String;
  51. var minLength : Int;
  52. var multiple : Bool;
  53. var name : String;
  54. var pattern : String;
  55. var placeholder : String;
  56. var readOnly : Bool;
  57. var required : Bool;
  58. var size : Int;
  59. var src : String;
  60. var step : String;
  61. var type : String;
  62. var defaultValue : String;
  63. var value : String;
  64. var valueAsDate : Date;
  65. var valueAsNumber : Float;
  66. var width : Int;
  67. var willValidate(default,null) : Bool;
  68. var validity(default,null) : ValidityState;
  69. var validationMessage(default,null) : String;
  70. var labels(default,null) : NodeList;
  71. var selectionStart : Int;
  72. var selectionEnd : Int;
  73. var selectionDirection : String;
  74. /**
  75. `string:` represents the alignment of the element. Use CSS instead.
  76. **/
  77. var align : String;
  78. /**
  79. `string:` represents a client-side image map.
  80. **/
  81. var useMap : String;
  82. var textLength(default,null) : Int;
  83. /**
  84. Increments the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  85. if the method is not applicable to for the current `type` value.,
  86. if the element has no `step` value,
  87. if the `value` cannot be converted to a number,
  88. if the resulting value is above the `max` or below the `min`.
  89. @throws DOMError
  90. **/
  91. function stepUp( n : Int = 1 ) : Void;
  92. /**
  93. Decrements the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  94. if the method is not applicable to for the current `type` value,
  95. if the element has no `step` value,
  96. if the `value` cannot be converted to a number,
  97. if the resulting value is above the `max` or below the `min`. 
  98. @throws DOMError
  99. **/
  100. function stepDown( n : Int = 1 ) : Void;
  101. function checkValidity() : Bool;
  102. function reportValidity() : Bool;
  103. function setCustomValidity( error : String ) : Void;
  104. function select() : Void;
  105. /** @throws DOMError */
  106. @:overload( function( replacement : String ) : Void {} )
  107. function setRangeText( replacement : String, start : Int, end : Int, selectionMode : SelectionMode = PRESERVE ) : Void;
  108. /** @throws DOMError */
  109. function setSelectionRange( start : Int, end : Int, ?direction : String ) : Void;
  110. }