InputElement.hx 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * Copyright (C)2005-2017 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(default,null) : 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 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 valueAsNumber : Float;
  65. var width : Int;
  66. var willValidate(default,null) : Bool;
  67. var validity(default,null) : ValidityState;
  68. var validationMessage(default,null) : String;
  69. var selectionStart : Int;
  70. var selectionEnd : Int;
  71. var selectionDirection : String;
  72. /**
  73. `string:` represents the alignment of the element. Use CSS instead.
  74. **/
  75. var align : String;
  76. /**
  77. `string:` represents a client-side image map.
  78. **/
  79. var useMap : String;
  80. var textLength(default,null) : Int;
  81. /** @throws DOMError */
  82. /**
  83. Increments the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  84. if the method is not applicable to for the current `type` value.,
  85. if the element has no `step` value,
  86. if the `value` cannot be converted to a number,
  87. if the resulting value is above the `max` or below the `min`.
  88. **/
  89. function stepUp( ?n : Int = 1 ) : Void;
  90. /** @throws DOMError */
  91. /**
  92. Decrements the `value` by (`step` * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
  93. if the method is not applicable to for the current `type` value,
  94. if the element has no `step` value,
  95. if the `value` cannot be converted to a number,
  96. if the resulting value is above the `max` or below the `min`. 
  97. **/
  98. function stepDown( ?n : Int = 1 ) : Void;
  99. function checkValidity() : Bool;
  100. function setCustomValidity( error : String ) : Void;
  101. function select() : Void;
  102. /** @throws DOMError */
  103. @:overload( function( replacement : String ) : Void {} )
  104. function setRangeText( replacement : String, start : Int, end : Int, ?selectionMode : SelectionMode = "preserve" ) : Void;
  105. /** @throws DOMError */
  106. function setSelectionRange( start : Int, end : Int, ?direction : String ) : Void;
  107. }