JQuery.hx 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. /* This file is generated, do not edit! Visit http://api.jquery.com/ for API documentation. */
  2. package js.jquery;
  3. @:native("$") extern class JQuery implements ArrayAccess<js.html.Element> {
  4. /**
  5. A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
  6. **/
  7. static public function Callbacks(flags:String):js.jquery.Callbacks;
  8. /**
  9. A factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
  10. **/
  11. static public function Deferred(?beforeStart:js.jquery.Deferred -> Void):js.jquery.Deferred;
  12. /**
  13. Perform an asynchronous HTTP (Ajax) request.
  14. **/
  15. @:overload(function(url:String, ?settings:Dynamic):js.jquery.JqXHR { })
  16. static public function ajax(?settings:Dynamic):js.jquery.JqXHR;
  17. /**
  18. Handle custom Ajax options or modify existing options before each request is sent and before they are processed by <code>$.ajax()</code>.
  19. **/
  20. static public function ajaxPrefilter(?dataTypes:String, handler:Dynamic -> Dynamic -> js.jquery.JqXHR -> Void):Void;
  21. /**
  22. Set default values for future Ajax requests. Its use is not recommended.
  23. **/
  24. static public function ajaxSetup(options:Dynamic):Void;
  25. /**
  26. Creates an object that handles the actual transmission of Ajax data.
  27. **/
  28. static public function ajaxTransport(dataType:String, handler:Dynamic -> Dynamic -> js.jquery.JqXHR -> Void):Void;
  29. /**
  30. States if the current page, in the user's browser, is being rendered using the <a href="http://www.w3.org/TR/REC-CSS2/box.html">W3C CSS Box Model</a>. <strong>This property was removed in jQuery 1.8</strong>. Please try to use feature detection instead.
  31. **/
  32. @:deprecated("Deprecated since jQuery 1.3")
  33. static public var boxModel : Bool;
  34. /**
  35. Contains flags for the useragent, read from navigator.userAgent. <strong>This property was removed in jQuery 1.9</strong> and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.
  36. **/
  37. @:deprecated("Deprecated since jQuery 1.3")
  38. static public var browser : Dynamic;
  39. /**
  40. Check to see if a DOM element is a descendant of another DOM element.
  41. **/
  42. static public function contains(container:js.html.Element, contained:js.html.Element):Bool;
  43. /**
  44. Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
  45. **/
  46. static public var cssHooks : Dynamic;
  47. /**
  48. An object containing all CSS properties that may be used without a unit. The <a href="/css/"><code>.css()</code></a> method uses this object to see if it may append <code>px</code> to unitless values.
  49. **/
  50. static public var cssNumber : Dynamic;
  51. /**
  52. Returns value at named data store for the element, as set by <code>jQuery.data(element, name, value)</code>, or the full data store for the element.
  53. OR
  54. Store arbitrary data associated with the specified element. Returns the value that was set.
  55. **/
  56. @:overload(function(element:js.html.Element, key:String):Dynamic { })
  57. @:overload(function(element:js.html.Element, key:String, value:Dynamic):Dynamic { })
  58. static public function data(element:js.html.Element):Dynamic;
  59. /**
  60. Execute the next function on the queue for the matched element.
  61. **/
  62. static public function dequeue(element:js.html.Element, ?queueName:String):Void;
  63. /**
  64. A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
  65. **/
  66. @:overload(function(object:Dynamic, callback:String -> Dynamic -> Void):Dynamic { })
  67. static public function each(array:Array<Dynamic>, callback:Int -> Dynamic -> Void):Dynamic;
  68. /**
  69. Takes a string and throws an exception containing it.
  70. **/
  71. static public function error(message:String):Void;
  72. /**
  73. Escapes any character that has a special meaning in a CSS selector.
  74. **/
  75. static public function escapeSelector(selector:String):String;
  76. /**
  77. Merge the contents of two or more objects together into the first object.
  78. **/
  79. @:overload(function(?deep:Bool, target:Dynamic, object1:Dynamic, ?objectN:Dynamic):Dynamic { })
  80. static public function extend(target:Dynamic, ?object1:Dynamic, ?objectN:Dynamic):Dynamic;
  81. /**
  82. An alias to `jQuery.prototype`.
  83. **/
  84. static public var fn : Dynamic;
  85. static public var fx : { /**
  86. The rate (in milliseconds) at which animations fire.
  87. **/
  88. @:deprecated("Deprecated since jQuery 3.0")
  89. var interval : Float; /**
  90. Globally disable all animations.
  91. **/
  92. var off : Bool; };
  93. /**
  94. Load data from the server using a HTTP GET request.
  95. **/
  96. @:overload(function(url:String, ?data:Dynamic, ?success:Dynamic -> String -> js.jquery.JqXHR -> Void, ?dataType:String):js.jquery.JqXHR { })
  97. static public function get(settings:Dynamic):js.jquery.JqXHR;
  98. /**
  99. Load JSON-encoded data from the server using a GET HTTP request.
  100. **/
  101. static public function getJSON(url:String, ?data:Dynamic, ?success:Dynamic -> String -> js.jquery.JqXHR -> Void):js.jquery.JqXHR;
  102. /**
  103. Load a JavaScript file from the server using a GET HTTP request, then execute it.
  104. **/
  105. static public function getScript(url:String, ?success:String -> String -> js.jquery.JqXHR -> Void):js.jquery.JqXHR;
  106. /**
  107. Execute some JavaScript code globally.
  108. **/
  109. static public function globalEval(code:String):Void;
  110. /**
  111. Finds the elements of an array which satisfy a filter function. The original array is not affected.
  112. **/
  113. static public function grep(array:haxe.extern.EitherType<Array<Dynamic>, js.html.NodeList>, _function:Dynamic -> Int -> Bool, ?invert:Bool):Array<Dynamic>;
  114. /**
  115. Determine whether an element has any jQuery data associated with it.
  116. **/
  117. static public function hasData(element:js.html.Element):Bool;
  118. /**
  119. Holds or releases the execution of jQuery's ready event.
  120. **/
  121. static public function holdReady(hold:Bool):Void;
  122. /**
  123. Modify and filter HTML strings passed through <a href="/category/manipulation/">jQuery manipulation methods</a>.
  124. **/
  125. static public function htmlPrefilter(html:String):String;
  126. /**
  127. Search for a specified value within an array and return its index (or -1 if not found).
  128. **/
  129. static public function inArray(value:Dynamic, array:Array<Dynamic>, ?fromIndex:Float):Float;
  130. /**
  131. Determine whether the argument is an array.
  132. **/
  133. static public function isArray(obj:Dynamic):Bool;
  134. /**
  135. Check to see if an object is empty (contains no enumerable properties).
  136. **/
  137. static public function isEmptyObject(object:Dynamic):Bool;
  138. /**
  139. Determine if the argument passed is a JavaScript function object.
  140. **/
  141. static public function isFunction(obj:Dynamic):Bool;
  142. /**
  143. Determines whether its argument represents a JavaScript number.
  144. **/
  145. static public function isNumeric(value:Dynamic):Bool;
  146. /**
  147. Check to see if an object is a plain object (created using "{}" or "new Object").
  148. **/
  149. static public function isPlainObject(object:Dynamic):Bool;
  150. /**
  151. Determine whether the argument is a window.
  152. **/
  153. static public function isWindow(obj:Dynamic):Bool;
  154. /**
  155. Check to see if a DOM node is within an XML document (or is an XML document).
  156. **/
  157. static public function isXMLDoc(node:js.html.Element):Bool;
  158. /**
  159. Convert an array-like object into a true JavaScript array.
  160. **/
  161. static public function makeArray(obj:Dynamic):Array<Dynamic>;
  162. /**
  163. Translate all items in an array or object to new array of items.
  164. **/
  165. @:overload(function(object:Dynamic, callback:Dynamic -> String -> Dynamic):Array<Dynamic> { })
  166. static public function map(array:Array<Dynamic>, callback:Dynamic -> Int -> Dynamic):Array<Dynamic>;
  167. /**
  168. Merge the contents of two arrays together into the first array.
  169. **/
  170. static public function merge(first:haxe.extern.EitherType<Array<Dynamic>, js.html.NodeList>, second:haxe.extern.EitherType<Array<Dynamic>, js.html.NodeList>):Array<Dynamic>;
  171. /**
  172. Relinquish jQuery's control of the <code>$</code> variable.
  173. **/
  174. static public function noConflict(?removeAll:Bool):Dynamic;
  175. /**
  176. An empty function.
  177. **/
  178. static public function noop():Void;
  179. /**
  180. Return a number representing the current time.
  181. **/
  182. static public function now():Float;
  183. /**
  184. Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
  185. **/
  186. @:overload(function(obj:Dynamic, traditional:Bool):String { })
  187. static public function param(obj:Dynamic):String;
  188. /**
  189. Parses a string into an array of DOM nodes.
  190. **/
  191. static public function parseHTML(data:String, ?context:js.html.Element, ?keepScripts:Bool):Array<js.html.Element>;
  192. /**
  193. Takes a well-formed JSON string and returns the resulting JavaScript value.
  194. **/
  195. @:deprecated("Deprecated since jQuery 3.0")
  196. static public function parseJSON(json:String):Dynamic;
  197. /**
  198. Parses a string into an XML document.
  199. **/
  200. static public function parseXML(data:String):js.html.Document;
  201. /**
  202. Load data from the server using a HTTP POST request.
  203. **/
  204. @:overload(function(url:String, ?data:Dynamic, ?success:Dynamic -> String -> js.jquery.JqXHR -> Void, ?dataType:String):js.jquery.JqXHR { })
  205. static public function post(settings:Dynamic):js.jquery.JqXHR;
  206. /**
  207. Takes a function and returns a new one that will always have a particular context.
  208. **/
  209. @:overload(function(context:Dynamic, name:String):haxe.Constraints.Function { })
  210. @:overload(function(_function:haxe.Constraints.Function, context:Dynamic, ?additionalArguments:Dynamic):haxe.Constraints.Function { })
  211. @:overload(function(context:Dynamic, name:String, ?additionalArguments:Dynamic):haxe.Constraints.Function { })
  212. static public function proxy(_function:haxe.Constraints.Function, context:Dynamic):haxe.Constraints.Function;
  213. /**
  214. Show the queue of functions to be executed on the matched element.
  215. OR
  216. Manipulate the queue of functions to be executed on the matched element.
  217. **/
  218. @:overload(function(element:js.html.Element, queueName:String, newQueue:Array<Void -> Void>):js.jquery.JQuery { })
  219. @:overload(function(element:js.html.Element, queueName:String, callback:haxe.Constraints.Function):js.jquery.JQuery { })
  220. static public function queue(element:js.html.Element, ?queueName:String):Array<Void -> Void>;
  221. /**
  222. A Promise-like object (or "thenable") that resolves when the document is ready.
  223. **/
  224. static public var ready : js.Promise.Thenable<Dynamic>;
  225. /**
  226. Handles errors thrown synchronously in functions wrapped in <code>jQuery()</code>.
  227. **/
  228. static public dynamic function readyException(error:js.Error):String;
  229. /**
  230. Remove a previously-stored piece of data.
  231. **/
  232. static public function removeData(element:js.html.Element, ?name:String):js.jquery.JQuery;
  233. /**
  234. Creates an object containing a set of properties ready to be used in the definition of custom animations.
  235. **/
  236. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?settings:Dynamic):Dynamic { })
  237. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):Dynamic { })
  238. static public function speed(settings:Dynamic):Dynamic;
  239. /**
  240. Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object.
  241. **/
  242. @:deprecated("Deprecated since jQuery 1.7")
  243. static public function sub():js.jquery.JQuery;
  244. /**
  245. A collection of properties that represent the presence of different browser features or bugs. Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the use of an external library such as <a href="http://modernizr.com">Modernizr</a> instead of dependency on properties in <code>jQuery.support</code>.
  246. **/
  247. @:deprecated("Deprecated since jQuery 1.9")
  248. static public var support : Dynamic;
  249. /**
  250. Remove the whitespace from the beginning and end of a string.
  251. **/
  252. static public function trim(str:String):String;
  253. /**
  254. Determine the internal JavaScript [[Class]] of an object.
  255. **/
  256. static public function type(obj:Dynamic):String;
  257. /**
  258. Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
  259. **/
  260. @:deprecated("Deprecated since jQuery 3.0")
  261. static public function unique(array:Array<js.html.Element>):Array<js.html.Element>;
  262. /**
  263. Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
  264. **/
  265. static public function uniqueSort(array:Array<js.html.Element>):Array<js.html.Element>;
  266. /**
  267. Provides a way to execute callback functions based on zero or more Thenable objects, usually <a href="/category/deferred-object/">Deferred</a> objects that represent asynchronous events.
  268. **/
  269. static public function when(deferreds:haxe.extern.EitherType<js.jquery.Promise, haxe.extern.EitherType<haxe.extern.Rest<js.jquery.Deferred>, js.Promise.Thenable<Dynamic>>>):js.jquery.Promise;
  270. /**
  271. Create a new jQuery object with elements added to the set of matched elements.
  272. **/
  273. @:overload(function(elements:js.html.Element):js.jquery.JQuery { })
  274. @:overload(function(html:String):js.jquery.JQuery { })
  275. @:overload(function(selection:js.jquery.JQuery):js.jquery.JQuery { })
  276. @:overload(function(selector:String, context:js.html.Element):js.jquery.JQuery { })
  277. public function add(selector:String):js.jquery.JQuery;
  278. /**
  279. Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
  280. **/
  281. public function addBack(?selector:String):js.jquery.JQuery;
  282. /**
  283. Adds the specified class(es) to each element in the set of matched elements.
  284. **/
  285. @:overload(function(_function:Int -> String -> String):js.jquery.JQuery { })
  286. public function addClass(className:String):js.jquery.JQuery;
  287. /**
  288. Insert content, specified by the parameter, after each element in the set of matched elements.
  289. **/
  290. @:overload(function(_function:Int -> String -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery { })
  291. @:overload(function(content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>, ?content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>):js.jquery.JQuery { })
  292. public function after(_function:Int -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  293. /**
  294. Register a handler to be called when Ajax requests complete. This is an <a href="/Ajax_Events/">AjaxEvent</a>.
  295. **/
  296. public function ajaxComplete(handler:js.jquery.Event -> js.jquery.JqXHR -> Dynamic -> Void):js.jquery.JQuery;
  297. /**
  298. Register a handler to be called when Ajax requests complete with an error. This is an <a href="/Ajax_Events/">Ajax Event</a>.
  299. **/
  300. public function ajaxError(handler:js.jquery.Event -> js.jquery.JqXHR -> Dynamic -> String -> Void):js.jquery.JQuery;
  301. /**
  302. Attach a function to be executed before an Ajax request is sent. This is an <a href="/Ajax_Events/">Ajax Event</a>.
  303. **/
  304. public function ajaxSend(handler:js.jquery.Event -> js.jquery.JqXHR -> Dynamic -> Void):js.jquery.JQuery;
  305. /**
  306. Register a handler to be called when the first Ajax request begins. This is an <a href="/Ajax_Events/">Ajax Event</a>.
  307. **/
  308. public function ajaxStart(handler:haxe.Constraints.Function):js.jquery.JQuery;
  309. /**
  310. Register a handler to be called when all Ajax requests have completed. This is an <a href="/Ajax_Events/">Ajax Event</a>.
  311. **/
  312. public function ajaxStop(handler:haxe.Constraints.Function):js.jquery.JQuery;
  313. /**
  314. Attach a function to be executed whenever an Ajax request completes successfully. This is an <a href="/Ajax_Events/">Ajax Event</a>.
  315. **/
  316. public function ajaxSuccess(handler:js.jquery.Event -> js.jquery.JqXHR -> Dynamic -> Dynamic -> Void):js.jquery.JQuery;
  317. /**
  318. Add the previous set of elements on the stack to the current set.
  319. **/
  320. @:deprecated("Deprecated since jQuery 1.8")
  321. public function andSelf():js.jquery.JQuery;
  322. /**
  323. Perform a custom animation of a set of CSS properties.
  324. **/
  325. @:overload(function(properties:Dynamic, ?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  326. public function animate(properties:Dynamic, options:Dynamic):js.jquery.JQuery;
  327. /**
  328. Insert content, specified by the parameter, to the end of each element in the set of matched elements.
  329. **/
  330. @:overload(function(content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>, ?content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>):js.jquery.JQuery { })
  331. public function append(_function:Int -> String -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  332. /**
  333. Insert every element in the set of matched elements to the end of the target.
  334. **/
  335. public function appendTo(target:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  336. /**
  337. Set one or more attributes for the set of matched elements.
  338. OR
  339. Get the value of an attribute for the first element in the set of matched elements.
  340. **/
  341. @:overload(function(attributes:Dynamic):js.jquery.JQuery { })
  342. @:overload(function(attributeName:String, value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  343. @:overload(function(attributeName:String, _function:Int -> String -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  344. public function attr(attributeName:String):String;
  345. /**
  346. Insert content, specified by the parameter, before each element in the set of matched elements.
  347. **/
  348. @:overload(function(_function:Int -> String -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery { })
  349. @:overload(function(content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>, ?content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>):js.jquery.JQuery { })
  350. public function before(_function:Int -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  351. /**
  352. Attach a handler to an event for the elements.
  353. **/
  354. @:deprecated("Deprecated since jQuery 3.0")
  355. @:overload(function(eventType:String, ?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  356. @:overload(function(eventType:String, ?eventData:Dynamic, ?preventBubble:Bool):js.jquery.JQuery { })
  357. public function bind(events:Dynamic):js.jquery.JQuery;
  358. /**
  359. Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
  360. **/
  361. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  362. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  363. public function blur():js.jquery.JQuery;
  364. /**
  365. Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
  366. **/
  367. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  368. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  369. public function change():js.jquery.JQuery;
  370. /**
  371. Get the children of each element in the set of matched elements, optionally filtered by a selector.
  372. **/
  373. public function children(?selector:String):js.jquery.JQuery;
  374. /**
  375. Remove from the queue all items that have not yet been run.
  376. **/
  377. public function clearQueue(?queueName:String):js.jquery.JQuery;
  378. /**
  379. Bind an event handler to the "click" JavaScript event, or trigger that event on an element.
  380. **/
  381. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  382. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  383. public function click():js.jquery.JQuery;
  384. /**
  385. Create a deep copy of the set of matched elements.
  386. **/
  387. @:overload(function(?withDataAndEvents:Bool, ?deepWithDataAndEvents:Bool):js.jquery.JQuery { })
  388. public function clone(?withDataAndEvents:Bool):js.jquery.JQuery;
  389. /**
  390. For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
  391. OR
  392. Get an array of all the elements and selectors matched against the current element up through the DOM tree.
  393. **/
  394. @:overload(function(selection:js.jquery.JQuery):js.jquery.JQuery { })
  395. @:overload(function(element:js.html.Element):js.jquery.JQuery { })
  396. @:overload(function(selector:String, ?context:js.html.Element):js.jquery.JQuery { })
  397. @:overload(function(selectors:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<String, js.jquery.JQuery>>, ?context:js.html.Element):Array<Dynamic> { })
  398. public function closest(selector:String):js.jquery.JQuery;
  399. /**
  400. Get the children of each element in the set of matched elements, including text and comment nodes.
  401. **/
  402. public function contents():js.jquery.JQuery;
  403. /**
  404. The DOM node context originally passed to <code>jQuery()</code>; if none was passed then context will likely be the document.
  405. **/
  406. @:deprecated("Deprecated since jQuery 1.10")
  407. public var context : js.html.Element;
  408. /**
  409. Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
  410. **/
  411. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  412. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  413. public function contextmenu():js.jquery.JQuery;
  414. /**
  415. Set one or more CSS properties for the set of matched elements.
  416. OR
  417. Get the computed style properties for the first element in the set of matched elements.
  418. **/
  419. @:overload(function(propertyNames:Array<String>):String { })
  420. @:overload(function(properties:Dynamic):js.jquery.JQuery { })
  421. @:overload(function(propertyName:String, value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  422. @:overload(function(propertyName:String, _function:Int -> String -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  423. public function css(propertyName:String):String;
  424. /**
  425. Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
  426. OR
  427. Store arbitrary data associated with the matched elements.
  428. **/
  429. @:overload(function(key:String):Dynamic { })
  430. @:overload(function(obj:Dynamic):js.jquery.JQuery { })
  431. @:overload(function(key:String, value:Dynamic):js.jquery.JQuery { })
  432. public function data():Dynamic;
  433. /**
  434. Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
  435. **/
  436. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  437. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  438. public function dblclick():js.jquery.JQuery;
  439. /**
  440. Set a timer to delay execution of subsequent items in the queue.
  441. **/
  442. public function delay(duration:Int, ?queueName:String):js.jquery.JQuery;
  443. /**
  444. Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
  445. **/
  446. @:deprecated("Deprecated since jQuery 3.0")
  447. @:overload(function(selector:String, eventType:String, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  448. @:overload(function(selector:String, eventType:String, eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  449. public function delegate(selector:String, events:Dynamic):js.jquery.JQuery;
  450. /**
  451. Execute the next function on the queue for the matched elements.
  452. **/
  453. public function dequeue(?queueName:String):js.jquery.JQuery;
  454. /**
  455. Remove the set of matched elements from the DOM.
  456. **/
  457. public function detach(?selector:String):js.jquery.JQuery;
  458. /**
  459. Remove event handlers previously attached using <code>.live()</code> from the elements.
  460. **/
  461. @:deprecated("Deprecated since jQuery 1.7")
  462. @:overload(function(events:Dynamic):js.jquery.JQuery { })
  463. @:overload(function(eventType:String, ?handler:String):js.jquery.JQuery { })
  464. public function die():js.jquery.JQuery;
  465. /**
  466. Iterate over a jQuery object, executing a function for each matched element.
  467. **/
  468. public function each(_function:Int -> js.html.Element -> Void):js.jquery.JQuery;
  469. /**
  470. Remove all child nodes of the set of matched elements from the DOM.
  471. **/
  472. public function empty():js.jquery.JQuery;
  473. /**
  474. End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
  475. **/
  476. public function end():js.jquery.JQuery;
  477. /**
  478. Reduce the set of matched elements to the one at the specified index.
  479. **/
  480. @:overload(function(indexFromEnd:Int):js.jquery.JQuery { })
  481. public function eq(index:Int):js.jquery.JQuery;
  482. /**
  483. Bind an event handler to the "error" JavaScript event.
  484. **/
  485. @:deprecated("Deprecated since jQuery 1.8")
  486. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  487. public function error(handler:js.jquery.Event -> Void):js.jquery.JQuery;
  488. /**
  489. Display the matched elements by fading them to opaque.
  490. **/
  491. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  492. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  493. public function fadeIn(options:Dynamic):js.jquery.JQuery;
  494. /**
  495. Hide the matched elements by fading them to transparent.
  496. **/
  497. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  498. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  499. public function fadeOut(options:Dynamic):js.jquery.JQuery;
  500. /**
  501. Adjust the opacity of the matched elements.
  502. **/
  503. @:overload(function(duration:haxe.extern.EitherType<Float, String>, opacity:Float, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  504. public function fadeTo(duration:haxe.extern.EitherType<Float, String>, opacity:Float, ?complete:haxe.Constraints.Function):js.jquery.JQuery;
  505. /**
  506. Display or hide the matched elements by animating their opacity.
  507. **/
  508. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  509. public function fadeToggle(options:Dynamic):js.jquery.JQuery;
  510. /**
  511. Reduce the set of matched elements to those that match the selector or pass the function's test.
  512. **/
  513. @:overload(function(elements:js.html.Element):js.jquery.JQuery { })
  514. @:overload(function(selection:js.jquery.JQuery):js.jquery.JQuery { })
  515. @:overload(function(_function:Int -> js.html.Element -> Bool):js.jquery.JQuery { })
  516. public function filter(selector:String):js.jquery.JQuery;
  517. /**
  518. Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
  519. **/
  520. @:overload(function(element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>):js.jquery.JQuery { })
  521. public function find(selector:String):js.jquery.JQuery;
  522. /**
  523. Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.
  524. **/
  525. public function finish(?queue:String):js.jquery.JQuery;
  526. /**
  527. Reduce the set of matched elements to the first in the set.
  528. **/
  529. public function first():js.jquery.JQuery;
  530. /**
  531. Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
  532. **/
  533. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  534. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  535. public function focus():js.jquery.JQuery;
  536. /**
  537. Bind an event handler to the "focusin" event.
  538. **/
  539. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  540. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  541. public function focusin():js.jquery.JQuery;
  542. /**
  543. Bind an event handler to the "focusout" JavaScript event.
  544. **/
  545. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  546. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  547. public function focusout():js.jquery.JQuery;
  548. /**
  549. Retrieve one of the elements matched by the jQuery object.
  550. OR
  551. Retrieve the elements matched by the jQuery object.
  552. **/
  553. @:overload(function(index:Int):js.html.Element { })
  554. public function get():Array<js.html.Element>;
  555. /**
  556. Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
  557. **/
  558. @:overload(function(contained:js.html.Element):js.jquery.JQuery { })
  559. public function has(selector:String):js.jquery.JQuery;
  560. /**
  561. Determine whether any of the matched elements are assigned the given class.
  562. **/
  563. public function hasClass(className:String):Bool;
  564. /**
  565. Set the CSS height of every matched element.
  566. OR
  567. Get the current computed height for the first element in the set of matched elements.
  568. **/
  569. @:overload(function(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  570. @:overload(function(_function:Int -> Int -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  571. public function height():Float;
  572. /**
  573. Hide the matched elements.
  574. **/
  575. @:overload(function(options:Dynamic):js.jquery.JQuery { })
  576. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  577. @:overload(function(duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  578. public function hide():js.jquery.JQuery;
  579. /**
  580. Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
  581. OR
  582. Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
  583. **/
  584. @:overload(function(handlerIn:js.jquery.Event -> Void, handlerOut:js.jquery.Event -> Void):js.jquery.JQuery { })
  585. public function hover(handlerInOut:js.jquery.Event -> Void):js.jquery.JQuery;
  586. /**
  587. Get the HTML contents of the first element in the set of matched elements.
  588. OR
  589. Set the HTML contents of each element in the set of matched elements.
  590. **/
  591. @:overload(function(htmlString:String):js.jquery.JQuery { })
  592. @:overload(function(_function:Int -> String -> String):js.jquery.JQuery { })
  593. public function html():String;
  594. /**
  595. Search for a given element from among the matched elements.
  596. **/
  597. @:overload(function(selector:String):Int { })
  598. @:overload(function(element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>):Int { })
  599. public function index():Int;
  600. /**
  601. Set the CSS inner height of each element in the set of matched elements.
  602. OR
  603. Get the current computed height for the first element in the set of matched elements, including padding but not border.
  604. **/
  605. @:overload(function(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  606. @:overload(function(_function:Int -> Float -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  607. public function innerHeight():Float;
  608. /**
  609. Get the current computed inner width for the first element in the set of matched elements, including padding but not border.
  610. OR
  611. Set the CSS inner width of each element in the set of matched elements.
  612. **/
  613. @:overload(function(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  614. @:overload(function(_function:Int -> Float -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  615. public function innerWidth():Float;
  616. /**
  617. Insert every element in the set of matched elements after the target.
  618. **/
  619. public function insertAfter(target:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  620. /**
  621. Insert every element in the set of matched elements before the target.
  622. **/
  623. public function insertBefore(target:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  624. /**
  625. Check the current matched set of elements against a selector, element, or jQuery object and return <code>true</code> if at least one of these elements matches the given arguments.
  626. **/
  627. @:overload(function(selection:js.jquery.JQuery):Bool { })
  628. @:overload(function(elements:js.html.Element):Bool { })
  629. @:overload(function(_function:Int -> js.html.Element -> Bool):Bool { })
  630. public function is(selector:String):Bool;
  631. /**
  632. A string containing the jQuery version number.
  633. **/
  634. public var jquery : String;
  635. /**
  636. Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
  637. **/
  638. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  639. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  640. public function keydown():js.jquery.JQuery;
  641. /**
  642. Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
  643. **/
  644. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  645. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  646. public function keypress():js.jquery.JQuery;
  647. /**
  648. Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
  649. **/
  650. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  651. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  652. public function keyup():js.jquery.JQuery;
  653. /**
  654. Reduce the set of matched elements to the final one in the set.
  655. **/
  656. public function last():js.jquery.JQuery;
  657. /**
  658. The number of elements in the jQuery object.
  659. **/
  660. public var length(default, null) : Int;
  661. /**
  662. Attach an event handler for all elements which match the current selector, now and in the future.
  663. **/
  664. @:deprecated("Deprecated since jQuery 1.7")
  665. @:overload(function(events:String, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  666. @:overload(function(events:String, ?data:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  667. public function live(events:Dynamic):js.jquery.JQuery;
  668. /**
  669. Bind an event handler to the "load" JavaScript event.
  670. OR
  671. Load data from the server and place the returned HTML into the matched element.
  672. **/
  673. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  674. @:overload(function(url:String, ?data:Dynamic, ?complete:String -> String -> js.jquery.JqXHR -> Void):js.jquery.JQuery { })
  675. public function load(handler:js.jquery.Event -> Void):js.jquery.JQuery;
  676. /**
  677. Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
  678. **/
  679. public function map(callback:Int -> js.html.Element -> Dynamic):js.jquery.JQuery;
  680. /**
  681. Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
  682. **/
  683. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  684. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  685. public function mousedown():js.jquery.JQuery;
  686. /**
  687. Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
  688. **/
  689. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  690. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  691. public function mouseenter():js.jquery.JQuery;
  692. /**
  693. Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
  694. **/
  695. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  696. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  697. public function mouseleave():js.jquery.JQuery;
  698. /**
  699. Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
  700. **/
  701. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  702. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  703. public function mousemove():js.jquery.JQuery;
  704. /**
  705. Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
  706. **/
  707. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  708. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  709. public function mouseout():js.jquery.JQuery;
  710. /**
  711. Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
  712. **/
  713. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  714. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  715. public function mouseover():js.jquery.JQuery;
  716. /**
  717. Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
  718. **/
  719. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  720. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  721. public function mouseup():js.jquery.JQuery;
  722. /**
  723. Creates DOM elements on the fly from the provided string of raw HTML.
  724. OR
  725. Accepts a string containing a CSS selector which is then used to match a set of elements.
  726. OR
  727. Binds a function to be executed when the DOM has finished loading.
  728. **/
  729. @:selfCall
  730. @:overload(function(element:js.html.Element):Void { })
  731. @:overload(function(elementArray:haxe.extern.EitherType<js.html.NodeList, Array<js.html.Element>>):Void { })
  732. @:overload(function(selection:js.jquery.JQuery):Void { })
  733. @:overload(function(callback:haxe.Constraints.Function):Void { })
  734. @:overload(function(object:Dynamic):Void { })
  735. @:overload(function(html:String, attributes:Dynamic):Void { })
  736. @:overload(function(selector:String, ?context:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>):Void { })
  737. @:overload(function(html:String, ?ownerDocument:js.html.Document):Void { })
  738. public function new():Void;
  739. /**
  740. Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
  741. **/
  742. public function next(?selector:String):js.jquery.JQuery;
  743. /**
  744. Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
  745. **/
  746. public function nextAll(?selector:String):js.jquery.JQuery;
  747. /**
  748. Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
  749. **/
  750. @:overload(function(?element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>, ?filter:String):js.jquery.JQuery { })
  751. public function nextUntil(?selector:String, ?filter:String):js.jquery.JQuery;
  752. /**
  753. Remove elements from the set of matched elements.
  754. **/
  755. @:overload(function(selection:js.jquery.JQuery):js.jquery.JQuery { })
  756. @:overload(function(_function:Int -> js.html.Element -> Bool):js.jquery.JQuery { })
  757. public function not(selector:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, String>>):js.jquery.JQuery;
  758. /**
  759. Remove an event handler.
  760. **/
  761. @:overload(function(event:js.jquery.Event):js.jquery.JQuery { })
  762. @:overload(function(events:Dynamic, ?selector:String):js.jquery.JQuery { })
  763. @:overload(function(events:String, ?selector:String, ?handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  764. public function off():js.jquery.JQuery;
  765. /**
  766. Get the current coordinates of the first element in the set of matched elements, relative to the document.
  767. OR
  768. Set the current coordinates of every element in the set of matched elements, relative to the document.
  769. **/
  770. @:overload(function(coordinates:{ var top : Float; var left : Float; }):js.jquery.JQuery { })
  771. @:overload(function(_function:Int -> { var top : Float; var left : Float; } -> Dynamic):js.jquery.JQuery { })
  772. public function offset():{ var top : Float; var left : Float; };
  773. /**
  774. Get the closest ancestor element that is positioned.
  775. **/
  776. public function offsetParent():js.jquery.JQuery;
  777. /**
  778. Attach an event handler function for one or more events to the selected elements.
  779. **/
  780. @:overload(function(events:String, ?selector:String, ?data:Dynamic, handler:js.jquery.Event -> haxe.extern.Rest<Dynamic> -> Void):js.jquery.JQuery { })
  781. public function on(events:Dynamic, ?selector:String, ?data:Dynamic):js.jquery.JQuery;
  782. /**
  783. Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
  784. **/
  785. @:overload(function(events:Dynamic, ?selector:String, ?data:Dynamic):js.jquery.JQuery { })
  786. @:overload(function(events:String, ?selector:String, ?data:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  787. public function one(events:String, ?data:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery;
  788. /**
  789. Set the CSS outer height of each element in the set of matched elements.
  790. OR
  791. Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements.
  792. **/
  793. @:overload(function(_function:Int -> Float -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  794. @:overload(function(?includeMargin:Bool):Float { })
  795. public function outerHeight(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery;
  796. /**
  797. Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements.
  798. OR
  799. Set the CSS outer width of each element in the set of matched elements.
  800. **/
  801. @:overload(function(_function:Int -> Float -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  802. @:overload(function(?includeMargin:Bool):Float { })
  803. public function outerWidth(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery;
  804. /**
  805. Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
  806. **/
  807. public function parent(?selector:String):js.jquery.JQuery;
  808. /**
  809. Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
  810. **/
  811. public function parents(?selector:String):js.jquery.JQuery;
  812. /**
  813. Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
  814. **/
  815. @:overload(function(?element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>, ?filter:String):js.jquery.JQuery { })
  816. public function parentsUntil(?selector:String, ?filter:String):js.jquery.JQuery;
  817. /**
  818. Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
  819. **/
  820. public function position():{ var top : Float; var left : Float; };
  821. /**
  822. Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
  823. **/
  824. @:overload(function(content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>, ?content:haxe.extern.EitherType<Array<String>, haxe.extern.EitherType<Array<js.jquery.JQuery>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.NodeList, haxe.extern.EitherType<String, js.jquery.JQuery>>>>>>):js.jquery.JQuery { })
  825. public function prepend(_function:Int -> String -> haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  826. /**
  827. Insert every element in the set of matched elements to the beginning of the target.
  828. **/
  829. public function prependTo(target:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  830. /**
  831. Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.
  832. **/
  833. public function prev(?selector:String):js.jquery.JQuery;
  834. /**
  835. Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
  836. **/
  837. public function prevAll(?selector:String):js.jquery.JQuery;
  838. /**
  839. Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
  840. **/
  841. @:overload(function(?element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>, ?filter:String):js.jquery.JQuery { })
  842. public function prevUntil(?selector:String, ?filter:String):js.jquery.JQuery;
  843. /**
  844. Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
  845. **/
  846. public function promise(?type:String, ?target:Dynamic):js.jquery.Promise;
  847. /**
  848. Set one or more properties for the set of matched elements.
  849. OR
  850. Get the value of a property for the first element in the set of matched elements.
  851. **/
  852. @:overload(function(properties:Dynamic):js.jquery.JQuery { })
  853. @:overload(function(propertyName:String, _function:Int -> Dynamic -> Dynamic):js.jquery.JQuery { })
  854. @:overload(function(propertyName:String, value:Dynamic):js.jquery.JQuery { })
  855. public function prop(propertyName:String):Dynamic;
  856. /**
  857. Add a collection of DOM elements onto the jQuery stack.
  858. **/
  859. @:overload(function(elements:haxe.extern.EitherType<Array<js.html.Element>, js.html.NodeList>, name:String, arguments:Array<Dynamic>):js.jquery.JQuery { })
  860. public function pushStack(elements:haxe.extern.EitherType<Array<js.html.Element>, js.html.NodeList>):js.jquery.JQuery;
  861. /**
  862. Show the queue of functions to be executed on the matched elements.
  863. OR
  864. Manipulate the queue of functions to be executed, once for each matched element.
  865. **/
  866. @:overload(function(?queueName:String, newQueue:Array<Void -> Void>):js.jquery.JQuery { })
  867. @:overload(function(?queueName:String, callback:haxe.Constraints.Function -> Void):js.jquery.JQuery { })
  868. public function queue(?queueName:String):Array<Void -> Void>;
  869. /**
  870. Specify a function to execute when the DOM is fully loaded.
  871. **/
  872. public function ready(handler:haxe.Constraints.Function):js.jquery.JQuery;
  873. /**
  874. Remove the set of matched elements from the DOM.
  875. **/
  876. public function remove(?selector:String):js.jquery.JQuery;
  877. /**
  878. Remove an attribute from each element in the set of matched elements.
  879. **/
  880. public function removeAttr(attributeName:String):js.jquery.JQuery;
  881. /**
  882. Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
  883. **/
  884. @:overload(function(?className:String):js.jquery.JQuery { })
  885. public function removeClass(_function:Int -> String -> String):js.jquery.JQuery;
  886. /**
  887. Remove a previously-stored piece of data.
  888. **/
  889. @:overload(function(?list:haxe.extern.EitherType<Array<String>, String>):js.jquery.JQuery { })
  890. public function removeData(?name:String):js.jquery.JQuery;
  891. /**
  892. Remove a property for the set of matched elements.
  893. **/
  894. public function removeProp(propertyName:String):js.jquery.JQuery;
  895. /**
  896. Replace each target element with the set of matched elements.
  897. **/
  898. public function replaceAll(target:haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  899. /**
  900. Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
  901. **/
  902. @:overload(function(_function:haxe.Constraints.Function):js.jquery.JQuery { })
  903. public function replaceWith(newContent:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<Array<js.html.Element>, haxe.extern.EitherType<String, js.jquery.JQuery>>>):js.jquery.JQuery;
  904. /**
  905. Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
  906. **/
  907. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  908. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  909. public function resize():js.jquery.JQuery;
  910. /**
  911. Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
  912. **/
  913. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  914. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  915. public function scroll():js.jquery.JQuery;
  916. /**
  917. Get the current horizontal position of the scroll bar for the first element in the set of matched elements.
  918. OR
  919. Set the current horizontal position of the scroll bar for each of the set of matched elements.
  920. **/
  921. @:overload(function(value:Float):js.jquery.JQuery { })
  922. public function scrollLeft():Int;
  923. /**
  924. Set the current vertical position of the scroll bar for each of the set of matched elements.
  925. OR
  926. Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
  927. **/
  928. @:overload(function(value:Float):js.jquery.JQuery { })
  929. public function scrollTop():Float;
  930. /**
  931. Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
  932. **/
  933. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  934. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  935. public function select():js.jquery.JQuery;
  936. /**
  937. A selector representing selector passed to jQuery(), if any, when creating the original set.
  938. **/
  939. @:deprecated("Deprecated since jQuery 1.7")
  940. public var selector : String;
  941. /**
  942. Encode a set of form elements as a string for submission.
  943. **/
  944. public function serialize():String;
  945. /**
  946. Encode a set of form elements as an array of names and values.
  947. **/
  948. public function serializeArray():Array<Dynamic>;
  949. /**
  950. Display the matched elements.
  951. **/
  952. @:overload(function(options:Dynamic):js.jquery.JQuery { })
  953. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  954. @:overload(function(duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  955. public function show():js.jquery.JQuery;
  956. /**
  957. Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
  958. **/
  959. public function siblings(?selector:String):js.jquery.JQuery;
  960. /**
  961. Return the number of elements in the jQuery object.
  962. **/
  963. @:deprecated("Deprecated since jQuery 1.8")
  964. public function size():Int;
  965. /**
  966. Reduce the set of matched elements to a subset specified by a range of indices.
  967. **/
  968. public function slice(start:Int, ?end:Int):js.jquery.JQuery;
  969. /**
  970. Display the matched elements with a sliding motion.
  971. **/
  972. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  973. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  974. public function slideDown(options:Dynamic):js.jquery.JQuery;
  975. /**
  976. Display or hide the matched elements with a sliding motion.
  977. **/
  978. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  979. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  980. public function slideToggle(options:Dynamic):js.jquery.JQuery;
  981. /**
  982. Hide the matched elements with a sliding motion.
  983. **/
  984. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  985. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  986. public function slideUp(options:Dynamic):js.jquery.JQuery;
  987. /**
  988. Stop the currently-running animation on the matched elements.
  989. **/
  990. @:overload(function(?queue:String, ?clearQueue:Bool, ?jumpToEnd:Bool):js.jquery.JQuery { })
  991. public function stop(?clearQueue:Bool, ?jumpToEnd:Bool):js.jquery.JQuery;
  992. /**
  993. Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
  994. **/
  995. @:overload(function(handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  996. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  997. public function submit():js.jquery.JQuery;
  998. /**
  999. Set the content of each element in the set of matched elements to the specified text.
  1000. OR
  1001. Get the combined text contents of each element in the set of matched elements, including their descendants.
  1002. **/
  1003. @:overload(function(text:haxe.extern.EitherType<Float, haxe.extern.EitherType<Bool, String>>):js.jquery.JQuery { })
  1004. @:overload(function(_function:Int -> String -> String):js.jquery.JQuery { })
  1005. public function text():String;
  1006. /**
  1007. Retrieve all the elements contained in the jQuery set, as an array.
  1008. **/
  1009. public function toArray():Array<js.html.Element>;
  1010. /**
  1011. Bind two or more handlers to the matched elements, to be executed on alternate clicks.
  1012. OR
  1013. Display or hide the matched elements.
  1014. **/
  1015. @:overload(function(options:Dynamic):js.jquery.JQuery { })
  1016. @:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  1017. @:overload(function(duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):js.jquery.JQuery { })
  1018. @:overload(function(handler:js.jquery.Event -> Void, handler:js.jquery.Event -> Void, ?handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  1019. public function toggle(display:Bool):js.jquery.JQuery;
  1020. /**
  1021. Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.
  1022. **/
  1023. @:overload(function(?state:Bool):js.jquery.JQuery { })
  1024. @:overload(function(className:String, state:Bool):js.jquery.JQuery { })
  1025. @:overload(function(_function:Int -> String -> Bool -> String, ?state:Bool):js.jquery.JQuery { })
  1026. public function toggleClass(className:String):js.jquery.JQuery;
  1027. /**
  1028. Execute all handlers and behaviors attached to the matched elements for the given event type.
  1029. **/
  1030. @:overload(function(event:js.jquery.Event, ?extraParameters:Dynamic):js.jquery.JQuery { })
  1031. public function trigger(eventType:String, ?extraParameters:Dynamic):js.jquery.JQuery;
  1032. /**
  1033. Execute all handlers attached to an element for an event.
  1034. **/
  1035. @:overload(function(event:js.jquery.Event, ?extraParameters:Dynamic):Dynamic { })
  1036. public function triggerHandler(eventType:String, ?extraParameters:Dynamic):Dynamic;
  1037. /**
  1038. Remove a previously-attached event handler from the elements.
  1039. **/
  1040. @:deprecated("Deprecated since jQuery 3.0")
  1041. @:overload(function(event:js.jquery.Event):js.jquery.JQuery { })
  1042. @:overload(function(eventType:String, _false:Bool):js.jquery.JQuery { })
  1043. @:overload(function(eventType:String, ?handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  1044. public function unbind():js.jquery.JQuery;
  1045. /**
  1046. Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
  1047. **/
  1048. @:deprecated("Deprecated since jQuery 3.0")
  1049. @:overload(function(namespace:String):js.jquery.JQuery { })
  1050. @:overload(function(selector:String, eventType:String):js.jquery.JQuery { })
  1051. @:overload(function(selector:String, events:Dynamic):js.jquery.JQuery { })
  1052. @:overload(function(selector:String, eventType:String, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  1053. public function undelegate():js.jquery.JQuery;
  1054. /**
  1055. Bind an event handler to the "unload" JavaScript event.
  1056. **/
  1057. @:deprecated("Deprecated since jQuery 1.8")
  1058. @:overload(function(?eventData:Dynamic, handler:js.jquery.Event -> Void):js.jquery.JQuery { })
  1059. public function unload(handler:js.jquery.Event -> Void):js.jquery.JQuery;
  1060. /**
  1061. Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
  1062. **/
  1063. @:overload(function(?selector:String):js.jquery.JQuery { })
  1064. public function unwrap():js.jquery.JQuery;
  1065. /**
  1066. Set the value of each element in the set of matched elements.
  1067. OR
  1068. Get the current value of the first element in the set of matched elements.
  1069. **/
  1070. @:overload(function(value:haxe.extern.EitherType<Float, haxe.extern.EitherType<Array<String>, String>>):js.jquery.JQuery { })
  1071. @:overload(function(_function:Int -> String -> String):js.jquery.JQuery { })
  1072. public function val():Dynamic;
  1073. /**
  1074. Set the CSS width of each element in the set of matched elements.
  1075. OR
  1076. Get the current computed width for the first element in the set of matched elements.
  1077. **/
  1078. @:overload(function(value:haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  1079. @:overload(function(_function:Int -> Int -> haxe.extern.EitherType<Float, String>):js.jquery.JQuery { })
  1080. public function width():Float;
  1081. /**
  1082. Wrap an HTML structure around each element in the set of matched elements.
  1083. **/
  1084. @:overload(function(_function:Int -> haxe.extern.EitherType<String, js.jquery.JQuery>):js.jquery.JQuery { })
  1085. public function wrap(wrappingElement:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  1086. /**
  1087. Wrap an HTML structure around all elements in the set of matched elements.
  1088. **/
  1089. @:overload(function(_function:Void -> haxe.extern.EitherType<String, js.jquery.JQuery>):js.jquery.JQuery { })
  1090. public function wrapAll(wrappingElement:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  1091. /**
  1092. Wrap an HTML structure around the content of each element in the set of matched elements.
  1093. **/
  1094. @:overload(function(_function:Int -> String):js.jquery.JQuery { })
  1095. public function wrapInner(wrappingElement:haxe.extern.EitherType<js.html.Element, haxe.extern.EitherType<String, js.jquery.JQuery>>):js.jquery.JQuery;
  1096. /**
  1097. Haxe iterator.
  1098. **/
  1099. @:runtime
  1100. inline public function iterator():js.jquery.JqIterator return new js.jquery.JqIterator(this);
  1101. /**
  1102. Haxe iterator.
  1103. **/
  1104. @:runtime
  1105. inline public function elements():js.jquery.JqEltsIterator return new js.jquery.JqEltsIterator(this);
  1106. }