@types/jquery 3.5.18 → 3.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jquery/JQuery.d.ts +596 -263
- jquery/JQueryStatic.d.ts +1248 -836
- jquery/LICENSE +0 -0
- jquery/README.md +1 -1
- jquery/dist/jquery.slim.d.ts +0 -0
- jquery/index.d.ts +0 -0
- jquery/legacy.d.ts +19 -15
- jquery/misc.d.ts +1412 -699
- jquery/package.json +3 -3
jquery/JQuery.d.ts
CHANGED
|
@@ -226,7 +226,14 @@ collection.css( "background", "yellow" );
|
|
|
226
226
|
</html>
|
|
227
227
|
```
|
|
228
228
|
*/
|
|
229
|
-
add(
|
|
229
|
+
add(
|
|
230
|
+
selector_elements_html_selection:
|
|
231
|
+
| JQuery.Selector
|
|
232
|
+
| JQuery.TypeOrArray<Element>
|
|
233
|
+
| JQuery.htmlString
|
|
234
|
+
| JQuery
|
|
235
|
+
| JQuery.Node,
|
|
236
|
+
): this;
|
|
230
237
|
/**
|
|
231
238
|
* Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
|
|
232
239
|
* @param selector A string containing a selector expression to match the current set of elements against.
|
|
@@ -417,7 +424,11 @@ $( "div" ).addClass(function( index, currentClass ) {
|
|
|
417
424
|
</html>
|
|
418
425
|
```
|
|
419
426
|
*/
|
|
420
|
-
addClass(
|
|
427
|
+
addClass(
|
|
428
|
+
className_function:
|
|
429
|
+
| JQuery.TypeOrArray<string>
|
|
430
|
+
| ((this: TElement, index: number, currentClassName: string) => string),
|
|
431
|
+
): this;
|
|
421
432
|
/**
|
|
422
433
|
* Insert content, specified by the parameter, after each element in the set of matched elements.
|
|
423
434
|
* @param contents One or more additional DOM elements, text nodes, arrays of elements and text nodes, HTML strings, or
|
|
@@ -517,7 +528,13 @@ $( "p" ).after( $( "b" ) );
|
|
|
517
528
|
* @since 1.4
|
|
518
529
|
* @since 1.10
|
|
519
530
|
*/
|
|
520
|
-
after(
|
|
531
|
+
after(
|
|
532
|
+
function_functionーhtml: (
|
|
533
|
+
this: TElement,
|
|
534
|
+
index: number,
|
|
535
|
+
html: string,
|
|
536
|
+
) => JQuery.htmlString | JQuery.TypeOrArray<JQuery.Node | JQuery<JQuery.Node>>,
|
|
537
|
+
): this;
|
|
521
538
|
/**
|
|
522
539
|
* Register a handler to be called when Ajax requests complete. This is an AjaxEvent.
|
|
523
540
|
* @param handler The function to be invoked.
|
|
@@ -530,10 +547,14 @@ $( document ).ajaxComplete(function( event, request, settings ) {
|
|
|
530
547
|
});
|
|
531
548
|
```
|
|
532
549
|
*/
|
|
533
|
-
ajaxComplete(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
550
|
+
ajaxComplete(
|
|
551
|
+
handler: (
|
|
552
|
+
this: Document,
|
|
553
|
+
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
554
|
+
jqXHR: JQuery.jqXHR,
|
|
555
|
+
ajaxOptions: JQuery.AjaxSettings,
|
|
556
|
+
) => void | false,
|
|
557
|
+
): this;
|
|
537
558
|
/**
|
|
538
559
|
* Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
|
|
539
560
|
* @param handler The function to be invoked.
|
|
@@ -546,11 +567,15 @@ $( document ).ajaxError(function( event, request, settings ) {
|
|
|
546
567
|
});
|
|
547
568
|
```
|
|
548
569
|
*/
|
|
549
|
-
ajaxError(
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
570
|
+
ajaxError(
|
|
571
|
+
handler: (
|
|
572
|
+
this: Document,
|
|
573
|
+
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
574
|
+
jqXHR: JQuery.jqXHR,
|
|
575
|
+
ajaxSettings: JQuery.AjaxSettings,
|
|
576
|
+
thrownError: string,
|
|
577
|
+
) => void | false,
|
|
578
|
+
): this;
|
|
554
579
|
/**
|
|
555
580
|
* Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
|
|
556
581
|
* @param handler The function to be invoked.
|
|
@@ -563,10 +588,14 @@ $( document ).ajaxSend(function( event, request, settings ) {
|
|
|
563
588
|
});
|
|
564
589
|
```
|
|
565
590
|
*/
|
|
566
|
-
ajaxSend(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
591
|
+
ajaxSend(
|
|
592
|
+
handler: (
|
|
593
|
+
this: Document,
|
|
594
|
+
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
595
|
+
jqXHR: JQuery.jqXHR,
|
|
596
|
+
ajaxOptions: JQuery.AjaxSettings,
|
|
597
|
+
) => void | false,
|
|
598
|
+
): this;
|
|
570
599
|
/**
|
|
571
600
|
* Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
|
|
572
601
|
* @param handler The function to be invoked.
|
|
@@ -605,11 +634,15 @@ $( document ).ajaxSuccess(function( event, request, settings ) {
|
|
|
605
634
|
});
|
|
606
635
|
```
|
|
607
636
|
*/
|
|
608
|
-
ajaxSuccess(
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
637
|
+
ajaxSuccess(
|
|
638
|
+
handler: (
|
|
639
|
+
this: Document,
|
|
640
|
+
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
641
|
+
jqXHR: JQuery.jqXHR,
|
|
642
|
+
ajaxOptions: JQuery.AjaxSettings,
|
|
643
|
+
data: JQuery.PlainObject,
|
|
644
|
+
) => void | false,
|
|
645
|
+
): this;
|
|
613
646
|
/**
|
|
614
647
|
* Perform a custom animation of a set of CSS properties.
|
|
615
648
|
* @param properties An object of CSS properties and values that the animation will move toward.
|
|
@@ -635,10 +668,12 @@ $( "p" ).animate({
|
|
|
635
668
|
});
|
|
636
669
|
```
|
|
637
670
|
*/
|
|
638
|
-
animate(
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
671
|
+
animate(
|
|
672
|
+
properties: JQuery.PlainObject,
|
|
673
|
+
duration: JQuery.Duration,
|
|
674
|
+
easing: string,
|
|
675
|
+
complete?: (this: TElement) => void,
|
|
676
|
+
): this;
|
|
642
677
|
/**
|
|
643
678
|
* Perform a custom animation of a set of CSS properties.
|
|
644
679
|
* @param properties An object of CSS properties and values that the animation will move toward.
|
|
@@ -740,9 +775,11 @@ $( "p" ).animate({
|
|
|
740
775
|
}, 500 );
|
|
741
776
|
```
|
|
742
777
|
*/
|
|
743
|
-
animate(
|
|
744
|
-
|
|
745
|
-
|
|
778
|
+
animate(
|
|
779
|
+
properties: JQuery.PlainObject,
|
|
780
|
+
duration_easing: JQuery.Duration | string,
|
|
781
|
+
complete?: (this: TElement) => void,
|
|
782
|
+
): this;
|
|
746
783
|
/**
|
|
747
784
|
* Perform a custom animation of a set of CSS properties.
|
|
748
785
|
* @param properties An object of CSS properties and values that the animation will move toward.
|
|
@@ -893,8 +930,7 @@ $( "p" ).animate({
|
|
|
893
930
|
});
|
|
894
931
|
```
|
|
895
932
|
*/
|
|
896
|
-
animate(properties: JQuery.PlainObject,
|
|
897
|
-
options: JQuery.EffectsOptions<TElement>): this;
|
|
933
|
+
animate(properties: JQuery.PlainObject, options: JQuery.EffectsOptions<TElement>): this;
|
|
898
934
|
/**
|
|
899
935
|
* Perform a custom animation of a set of CSS properties.
|
|
900
936
|
* @param properties An object of CSS properties and values that the animation will move toward.
|
|
@@ -902,8 +938,7 @@ $( "p" ).animate({
|
|
|
902
938
|
* @see \`{@link https://api.jquery.com/animate/ }\`
|
|
903
939
|
* @since 1.0
|
|
904
940
|
*/
|
|
905
|
-
animate(properties: JQuery.PlainObject,
|
|
906
|
-
complete?: (this: TElement) => void): this;
|
|
941
|
+
animate(properties: JQuery.PlainObject, complete?: (this: TElement) => void): this;
|
|
907
942
|
/**
|
|
908
943
|
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
909
944
|
* @param contents One or more additional DOM elements, text nodes, arrays of elements and text nodes, HTML strings, or
|
|
@@ -997,7 +1032,13 @@ $( "p" ).append( $( "strong" ) );
|
|
|
997
1032
|
* @see \`{@link https://api.jquery.com/append/ }\`
|
|
998
1033
|
* @since 1.4
|
|
999
1034
|
*/
|
|
1000
|
-
append(
|
|
1035
|
+
append(
|
|
1036
|
+
funсtion: (
|
|
1037
|
+
this: TElement,
|
|
1038
|
+
index: number,
|
|
1039
|
+
html: string,
|
|
1040
|
+
) => JQuery.htmlString | JQuery.TypeOrArray<JQuery.Node | JQuery<JQuery.Node>>,
|
|
1041
|
+
): this;
|
|
1001
1042
|
/**
|
|
1002
1043
|
* Insert every element in the set of matched elements to the end of the target.
|
|
1003
1044
|
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements
|
|
@@ -1032,7 +1073,9 @@ $( "span" ).appendTo( "#foo" );
|
|
|
1032
1073
|
</html>
|
|
1033
1074
|
```
|
|
1034
1075
|
*/
|
|
1035
|
-
appendTo(
|
|
1076
|
+
appendTo(
|
|
1077
|
+
target: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray<Element | DocumentFragment> | JQuery,
|
|
1078
|
+
): this;
|
|
1036
1079
|
/**
|
|
1037
1080
|
* Set one or more attributes for the set of matched elements.
|
|
1038
1081
|
* @param attributeName The name of the attribute to set.
|
|
@@ -1106,8 +1149,14 @@ $( "img" ).attr( "src", function() {
|
|
|
1106
1149
|
</html>
|
|
1107
1150
|
```
|
|
1108
1151
|
*/
|
|
1109
|
-
attr(
|
|
1110
|
-
|
|
1152
|
+
attr(
|
|
1153
|
+
attributeName: string,
|
|
1154
|
+
value_function:
|
|
1155
|
+
| string
|
|
1156
|
+
| number
|
|
1157
|
+
| null
|
|
1158
|
+
| ((this: TElement, index: number, attr: string) => string | number | void | undefined),
|
|
1159
|
+
): this;
|
|
1111
1160
|
/**
|
|
1112
1161
|
* Set one or more attributes for the set of matched elements.
|
|
1113
1162
|
* @param attributes An object of attribute-value pairs to set.
|
|
@@ -1327,7 +1376,13 @@ $( "p" ).before( $( "b" ) );
|
|
|
1327
1376
|
* @since 1.4
|
|
1328
1377
|
* @since 1.10
|
|
1329
1378
|
*/
|
|
1330
|
-
before(
|
|
1379
|
+
before(
|
|
1380
|
+
function_functionーhtml: (
|
|
1381
|
+
this: TElement,
|
|
1382
|
+
index: number,
|
|
1383
|
+
html: string,
|
|
1384
|
+
) => JQuery.htmlString | JQuery.TypeOrArray<JQuery.Node | JQuery<JQuery.Node>>,
|
|
1385
|
+
): this;
|
|
1331
1386
|
// [bind() overloads] https://github.com/jquery/api.jquery.com/issues/1048
|
|
1332
1387
|
/**
|
|
1333
1388
|
* Attach a handler to an event for the elements.
|
|
@@ -1343,11 +1398,10 @@ $( "p" ).before( $( "b" ) );
|
|
|
1343
1398
|
*
|
|
1344
1399
|
* **Solution**: Change the method call to use `.on()` or `.off()`, the documentation for the old methods include specific instructions. In general, the `.bind()` and `.unbind()` methods can be renamed directly to `.on()` and `.off()` respectively since the argument orders are identical.
|
|
1345
1400
|
*/
|
|
1346
|
-
bind<TType extends string,
|
|
1347
|
-
TData>(
|
|
1401
|
+
bind<TType extends string, TData>(
|
|
1348
1402
|
eventType: TType,
|
|
1349
1403
|
eventData: TData,
|
|
1350
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType
|
|
1404
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType>,
|
|
1351
1405
|
): this;
|
|
1352
1406
|
/**
|
|
1353
1407
|
* Attach a handler to an event for the elements.
|
|
@@ -1477,10 +1531,11 @@ $( "button" ).click(function() {
|
|
|
1477
1531
|
*/
|
|
1478
1532
|
bind<TType extends string>(
|
|
1479
1533
|
eventType: TType,
|
|
1480
|
-
handler_preventBubble:
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1534
|
+
handler_preventBubble:
|
|
1535
|
+
| JQuery.TypeEventHandler<TElement, undefined, TElement, TElement, TType>
|
|
1536
|
+
| false
|
|
1537
|
+
| null
|
|
1538
|
+
| undefined,
|
|
1484
1539
|
): this;
|
|
1485
1540
|
/**
|
|
1486
1541
|
* Attach a handler to an event for the elements.
|
|
@@ -1520,8 +1575,7 @@ $( "div.test" ).bind({
|
|
|
1520
1575
|
*
|
|
1521
1576
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
1522
1577
|
*/
|
|
1523
|
-
blur<TData>(eventData: TData,
|
|
1524
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, 'blur'>): this;
|
|
1578
|
+
blur<TData>(eventData: TData, handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "blur">): this;
|
|
1525
1579
|
/**
|
|
1526
1580
|
* Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
|
|
1527
1581
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -1537,8 +1591,11 @@ $( "div.test" ).bind({
|
|
|
1537
1591
|
$( "p" ).blur();
|
|
1538
1592
|
```
|
|
1539
1593
|
*/
|
|
1540
|
-
blur(
|
|
1541
|
-
|
|
1594
|
+
blur(
|
|
1595
|
+
handler?:
|
|
1596
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "blur">
|
|
1597
|
+
| false,
|
|
1598
|
+
): this;
|
|
1542
1599
|
/**
|
|
1543
1600
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1544
1601
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -1551,8 +1608,10 @@ $( "p" ).blur();
|
|
|
1551
1608
|
*
|
|
1552
1609
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
1553
1610
|
*/
|
|
1554
|
-
change<TData>(
|
|
1555
|
-
|
|
1611
|
+
change<TData>(
|
|
1612
|
+
eventData: TData,
|
|
1613
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "change">,
|
|
1614
|
+
): this;
|
|
1556
1615
|
/**
|
|
1557
1616
|
* Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
|
|
1558
1617
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -1611,8 +1670,11 @@ $( "input[type='text']" ).change(function() {
|
|
|
1611
1670
|
});
|
|
1612
1671
|
```
|
|
1613
1672
|
*/
|
|
1614
|
-
change(
|
|
1615
|
-
|
|
1673
|
+
change(
|
|
1674
|
+
handler?:
|
|
1675
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "change">
|
|
1676
|
+
| false,
|
|
1677
|
+
): this;
|
|
1616
1678
|
/**
|
|
1617
1679
|
* Get the children of each element in the set of matched elements, optionally filtered by a selector.
|
|
1618
1680
|
* @param selector A string containing a selector expression to match elements against.
|
|
@@ -1866,8 +1928,10 @@ $( "#stop" ).click(function() {
|
|
|
1866
1928
|
*
|
|
1867
1929
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
1868
1930
|
*/
|
|
1869
|
-
click<TData>(
|
|
1870
|
-
|
|
1931
|
+
click<TData>(
|
|
1932
|
+
eventData: TData,
|
|
1933
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "click">,
|
|
1934
|
+
): this;
|
|
1871
1935
|
/**
|
|
1872
1936
|
* Bind an event handler to the "click" JavaScript event, or trigger that event on an element.
|
|
1873
1937
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -1917,8 +1981,11 @@ $( "p" ).click(function() {
|
|
|
1917
1981
|
$( "p" ).click();
|
|
1918
1982
|
```
|
|
1919
1983
|
*/
|
|
1920
|
-
click(
|
|
1921
|
-
|
|
1984
|
+
click(
|
|
1985
|
+
handler?:
|
|
1986
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "click">
|
|
1987
|
+
| false,
|
|
1988
|
+
): this;
|
|
1922
1989
|
/**
|
|
1923
1990
|
* Create a deep copy of the set of matched elements.
|
|
1924
1991
|
* @param withDataAndEvents A Boolean indicating whether event handlers and data should be copied along with the elements. The
|
|
@@ -2105,8 +2172,10 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
|
|
2105
2172
|
*
|
|
2106
2173
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
2107
2174
|
*/
|
|
2108
|
-
contextmenu<TData>(
|
|
2109
|
-
|
|
2175
|
+
contextmenu<TData>(
|
|
2176
|
+
eventData: TData,
|
|
2177
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "contextmenu">,
|
|
2178
|
+
): this;
|
|
2110
2179
|
/**
|
|
2111
2180
|
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
|
2112
2181
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -2160,8 +2229,11 @@ div.contextmenu(function() {
|
|
|
2160
2229
|
</html>
|
|
2161
2230
|
```
|
|
2162
2231
|
*/
|
|
2163
|
-
contextmenu(
|
|
2164
|
-
|
|
2232
|
+
contextmenu(
|
|
2233
|
+
handler?:
|
|
2234
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "contextmenu">
|
|
2235
|
+
| false,
|
|
2236
|
+
): this;
|
|
2165
2237
|
/**
|
|
2166
2238
|
* Set one or more CSS properties for the set of matched elements.
|
|
2167
2239
|
* @param propertyName A CSS property name.
|
|
@@ -2273,8 +2345,13 @@ $( "span" ).on( "click", function() {
|
|
|
2273
2345
|
</html>
|
|
2274
2346
|
```
|
|
2275
2347
|
*/
|
|
2276
|
-
css(
|
|
2277
|
-
|
|
2348
|
+
css(
|
|
2349
|
+
propertyName: string,
|
|
2350
|
+
value_function:
|
|
2351
|
+
| string
|
|
2352
|
+
| number
|
|
2353
|
+
| ((this: TElement, index: number, value: string) => string | number | void | undefined),
|
|
2354
|
+
): this;
|
|
2278
2355
|
/**
|
|
2279
2356
|
* Set one or more CSS properties for the set of matched elements.
|
|
2280
2357
|
* @param properties An object of property-value pairs to set.
|
|
@@ -2357,7 +2434,11 @@ $( "div" ).on( "click", function() {
|
|
|
2357
2434
|
</html>
|
|
2358
2435
|
```
|
|
2359
2436
|
*/
|
|
2360
|
-
css(
|
|
2437
|
+
css(
|
|
2438
|
+
properties: JQuery.PlainObject<
|
|
2439
|
+
string | number | ((this: TElement, index: number, value: string) => string | number | void | undefined)
|
|
2440
|
+
>,
|
|
2441
|
+
): this;
|
|
2361
2442
|
/**
|
|
2362
2443
|
* Get the computed style properties for the first element in the set of matched elements.
|
|
2363
2444
|
* @param propertyName A CSS property.
|
|
@@ -2621,8 +2702,10 @@ $( "button" ).click(function() {
|
|
|
2621
2702
|
*
|
|
2622
2703
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
2623
2704
|
*/
|
|
2624
|
-
dblclick<TData>(
|
|
2625
|
-
|
|
2705
|
+
dblclick<TData>(
|
|
2706
|
+
eventData: TData,
|
|
2707
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "dblclick">,
|
|
2708
|
+
): this;
|
|
2626
2709
|
/**
|
|
2627
2710
|
* Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
|
|
2628
2711
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -2676,8 +2759,11 @@ divdbl.dblclick(function() {
|
|
|
2676
2759
|
</html>
|
|
2677
2760
|
```
|
|
2678
2761
|
*/
|
|
2679
|
-
dblclick(
|
|
2680
|
-
|
|
2762
|
+
dblclick(
|
|
2763
|
+
handler?:
|
|
2764
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "dblclick">
|
|
2765
|
+
| false,
|
|
2766
|
+
): this;
|
|
2681
2767
|
/**
|
|
2682
2768
|
* Set a timer to delay execution of subsequent items in the queue.
|
|
2683
2769
|
* @param duration An integer indicating the number of milliseconds to delay execution of the next item in the queue.
|
|
@@ -2742,12 +2828,11 @@ $( "button" ).click(function() {
|
|
|
2742
2828
|
*
|
|
2743
2829
|
* **Solution**: Change the method call to use `.on()` or `.off()`, the documentation for the old methods include specific instructions. In general, the `.bind()` and `.unbind()` methods can be renamed directly to `.on()` and `.off()` respectively since the argument orders are identical.
|
|
2744
2830
|
*/
|
|
2745
|
-
delegate<TType extends string,
|
|
2746
|
-
TData>(
|
|
2831
|
+
delegate<TType extends string, TData>(
|
|
2747
2832
|
selector: JQuery.Selector,
|
|
2748
2833
|
eventType: TType,
|
|
2749
2834
|
eventData: TData,
|
|
2750
|
-
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType
|
|
2835
|
+
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType>,
|
|
2751
2836
|
): this;
|
|
2752
2837
|
/**
|
|
2753
2838
|
* 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.
|
|
@@ -2863,8 +2948,9 @@ $( "button" ).click(function() {
|
|
|
2863
2948
|
delegate<TType extends string>(
|
|
2864
2949
|
selector: JQuery.Selector,
|
|
2865
2950
|
eventType: TType,
|
|
2866
|
-
handler:
|
|
2867
|
-
|
|
2951
|
+
handler:
|
|
2952
|
+
| JQuery.TypeEventHandler<TElement, undefined, any, any, TType>
|
|
2953
|
+
| false,
|
|
2868
2954
|
): this;
|
|
2869
2955
|
/**
|
|
2870
2956
|
* 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.
|
|
@@ -2878,9 +2964,7 @@ $( "button" ).click(function() {
|
|
|
2878
2964
|
*
|
|
2879
2965
|
* **Solution**: Change the method call to use `.on()` or `.off()`, the documentation for the old methods include specific instructions. In general, the `.bind()` and `.unbind()` methods can be renamed directly to `.on()` and `.off()` respectively since the argument orders are identical.
|
|
2880
2966
|
*/
|
|
2881
|
-
delegate(selector: JQuery.Selector,
|
|
2882
|
-
events: JQuery.TypeEventHandlers<TElement, undefined, any, any>
|
|
2883
|
-
): this;
|
|
2967
|
+
delegate(selector: JQuery.Selector, events: JQuery.TypeEventHandlers<TElement, undefined, any, any>): this;
|
|
2884
2968
|
/**
|
|
2885
2969
|
* Execute the next function on the queue for the matched elements.
|
|
2886
2970
|
* @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
|
|
@@ -3492,7 +3576,13 @@ $( document.body ).click(function() {
|
|
|
3492
3576
|
</html>
|
|
3493
3577
|
```
|
|
3494
3578
|
*/
|
|
3495
|
-
fadeIn(
|
|
3579
|
+
fadeIn(
|
|
3580
|
+
duration_easing_complete_options?:
|
|
3581
|
+
| JQuery.Duration
|
|
3582
|
+
| string
|
|
3583
|
+
| ((this: TElement) => void)
|
|
3584
|
+
| JQuery.EffectsOptions<TElement>,
|
|
3585
|
+
): this;
|
|
3496
3586
|
/**
|
|
3497
3587
|
* Hide the matched elements by fading them to transparent.
|
|
3498
3588
|
* @param duration A string or number determining how long the animation will run.
|
|
@@ -3657,7 +3747,13 @@ $( "p" ).click(function() {
|
|
|
3657
3747
|
</html>
|
|
3658
3748
|
```
|
|
3659
3749
|
*/
|
|
3660
|
-
fadeOut(
|
|
3750
|
+
fadeOut(
|
|
3751
|
+
duration_easing_complete_options?:
|
|
3752
|
+
| JQuery.Duration
|
|
3753
|
+
| string
|
|
3754
|
+
| ((this: TElement) => void)
|
|
3755
|
+
| JQuery.EffectsOptions<TElement>,
|
|
3756
|
+
): this;
|
|
3661
3757
|
/**
|
|
3662
3758
|
* Adjust the opacity of the matched elements.
|
|
3663
3759
|
* @param duration A string or number determining how long the animation will run.
|
|
@@ -3920,7 +4016,13 @@ $( "button:last" ).click(function() {
|
|
|
3920
4016
|
* @since 1.0
|
|
3921
4017
|
* @since 1.4.3
|
|
3922
4018
|
*/
|
|
3923
|
-
fadeToggle(
|
|
4019
|
+
fadeToggle(
|
|
4020
|
+
duration_easing_complete_options?:
|
|
4021
|
+
| JQuery.Duration
|
|
4022
|
+
| string
|
|
4023
|
+
| ((this: TElement) => void)
|
|
4024
|
+
| JQuery.EffectsOptions<TElement>,
|
|
4025
|
+
): this;
|
|
3924
4026
|
/**
|
|
3925
4027
|
* Reduce the set of matched elements to those that match the selector or pass the function's test.
|
|
3926
4028
|
* @param selector_elements_selection_function _@param_ `selector_elements_selection_function`
|
|
@@ -4017,11 +4119,12 @@ $( "div" ).filter( document.getElementById( "unique" ) );
|
|
|
4017
4119
|
$( "div" ).filter( $( "#unique" ) );
|
|
4018
4120
|
```
|
|
4019
4121
|
*/
|
|
4020
|
-
filter(
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4122
|
+
filter(
|
|
4123
|
+
selector_elements_selection_function:
|
|
4124
|
+
| JQuery.Selector
|
|
4125
|
+
| JQuery.TypeOrArray<Element>
|
|
4126
|
+
| JQuery
|
|
4127
|
+
| ((this: TElement, index: number, element: TElement) => boolean),
|
|
4025
4128
|
): this;
|
|
4026
4129
|
/**
|
|
4027
4130
|
* Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
|
|
@@ -4301,8 +4404,10 @@ $( "p span" ).first().addClass( "highlight" );
|
|
|
4301
4404
|
*
|
|
4302
4405
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
4303
4406
|
*/
|
|
4304
|
-
focus<TData>(
|
|
4305
|
-
|
|
4407
|
+
focus<TData>(
|
|
4408
|
+
eventData: TData,
|
|
4409
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "focus">,
|
|
4410
|
+
): this;
|
|
4306
4411
|
/**
|
|
4307
4412
|
* Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
|
|
4308
4413
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -4354,8 +4459,11 @@ $( document ).ready(function() {
|
|
|
4354
4459
|
});
|
|
4355
4460
|
```
|
|
4356
4461
|
*/
|
|
4357
|
-
focus(
|
|
4358
|
-
|
|
4462
|
+
focus(
|
|
4463
|
+
handler?:
|
|
4464
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "focus">
|
|
4465
|
+
| false,
|
|
4466
|
+
): this;
|
|
4359
4467
|
/**
|
|
4360
4468
|
* Bind an event handler to the "focusin" event.
|
|
4361
4469
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -4368,8 +4476,10 @@ $( document ).ready(function() {
|
|
|
4368
4476
|
*
|
|
4369
4477
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
4370
4478
|
*/
|
|
4371
|
-
focusin<TData>(
|
|
4372
|
-
|
|
4479
|
+
focusin<TData>(
|
|
4480
|
+
eventData: TData,
|
|
4481
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "focusin">,
|
|
4482
|
+
): this;
|
|
4373
4483
|
/**
|
|
4374
4484
|
* Bind an event handler to the "focusin" event.
|
|
4375
4485
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -4409,8 +4519,11 @@ $( "p" ).focusin(function() {
|
|
|
4409
4519
|
</html>
|
|
4410
4520
|
```
|
|
4411
4521
|
*/
|
|
4412
|
-
focusin(
|
|
4413
|
-
|
|
4522
|
+
focusin(
|
|
4523
|
+
handler?:
|
|
4524
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "focusin">
|
|
4525
|
+
| false,
|
|
4526
|
+
): this;
|
|
4414
4527
|
/**
|
|
4415
4528
|
* Bind an event handler to the "focusout" JavaScript event.
|
|
4416
4529
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -4423,8 +4536,10 @@ $( "p" ).focusin(function() {
|
|
|
4423
4536
|
*
|
|
4424
4537
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
4425
4538
|
*/
|
|
4426
|
-
focusout<TData>(
|
|
4427
|
-
|
|
4539
|
+
focusout<TData>(
|
|
4540
|
+
eventData: TData,
|
|
4541
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "focusout">,
|
|
4542
|
+
): this;
|
|
4428
4543
|
/**
|
|
4429
4544
|
* Bind an event handler to the "focusout" JavaScript event.
|
|
4430
4545
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -4485,8 +4600,11 @@ $( "p" )
|
|
|
4485
4600
|
</html>
|
|
4486
4601
|
```
|
|
4487
4602
|
*/
|
|
4488
|
-
focusout(
|
|
4489
|
-
|
|
4603
|
+
focusout(
|
|
4604
|
+
handler?:
|
|
4605
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "focusout">
|
|
4606
|
+
| false,
|
|
4607
|
+
): this;
|
|
4490
4608
|
/**
|
|
4491
4609
|
* Retrieve one of the elements matched by the jQuery object.
|
|
4492
4610
|
* @param index A zero-based integer indicating which element to retrieve.
|
|
@@ -4701,7 +4819,9 @@ $( "div" ).one( "click", function() {
|
|
|
4701
4819
|
</html>
|
|
4702
4820
|
```
|
|
4703
4821
|
*/
|
|
4704
|
-
height(
|
|
4822
|
+
height(
|
|
4823
|
+
value_function: string | number | ((this: TElement, index: number, height: number) => string | number),
|
|
4824
|
+
): this;
|
|
4705
4825
|
/**
|
|
4706
4826
|
* Get the current computed height for the first element in the set of matched elements.
|
|
4707
4827
|
* @see \`{@link https://api.jquery.com/height/ }\`
|
|
@@ -4927,7 +5047,9 @@ $( "button" ).click(function() {
|
|
|
4927
5047
|
</html>
|
|
4928
5048
|
```
|
|
4929
5049
|
*/
|
|
4930
|
-
hide(
|
|
5050
|
+
hide(
|
|
5051
|
+
duration_complete_options?: JQuery.Duration | ((this: TElement) => void) | JQuery.EffectsOptions<TElement>,
|
|
5052
|
+
): this;
|
|
4931
5053
|
/**
|
|
4932
5054
|
* Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
|
|
4933
5055
|
* @param handlerIn A function to execute when the mouse pointer enters the element.
|
|
@@ -5002,10 +5124,14 @@ $( "td" ).hover(
|
|
|
5002
5124
|
$( "td" ).off( "mouseenter mouseleave" );
|
|
5003
5125
|
```
|
|
5004
5126
|
*/
|
|
5005
|
-
hover(
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5127
|
+
hover(
|
|
5128
|
+
handlerIn:
|
|
5129
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseenter">
|
|
5130
|
+
| false,
|
|
5131
|
+
handlerOut:
|
|
5132
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseleave">
|
|
5133
|
+
| false,
|
|
5134
|
+
): this;
|
|
5009
5135
|
/**
|
|
5010
5136
|
* Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
|
|
5011
5137
|
* @param handlerInOut A function to execute when the mouse pointer enters or leaves the element.
|
|
@@ -5071,8 +5197,11 @@ $( "li" )
|
|
|
5071
5197
|
</html>
|
|
5072
5198
|
```
|
|
5073
5199
|
*/
|
|
5074
|
-
hover(
|
|
5075
|
-
|
|
5200
|
+
hover(
|
|
5201
|
+
handlerInOut:
|
|
5202
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseenter" | "mouseleave">
|
|
5203
|
+
| false,
|
|
5204
|
+
): this;
|
|
5076
5205
|
/**
|
|
5077
5206
|
* Set the HTML contents of each element in the set of matched elements.
|
|
5078
5207
|
* @param htmlString_function _@param_ `htmlString_function`
|
|
@@ -5145,9 +5274,12 @@ $( "div b" )
|
|
|
5145
5274
|
</html>
|
|
5146
5275
|
```
|
|
5147
5276
|
*/
|
|
5148
|
-
html(
|
|
5149
|
-
|
|
5150
|
-
|
|
5277
|
+
html(
|
|
5278
|
+
htmlString_function:
|
|
5279
|
+
| JQuery.htmlString
|
|
5280
|
+
| JQuery.Node
|
|
5281
|
+
| ((this: TElement, index: number, oldhtml: JQuery.htmlString) => JQuery.htmlString | JQuery.Node),
|
|
5282
|
+
): this;
|
|
5151
5283
|
/**
|
|
5152
5284
|
* Get the HTML contents of the first element in the set of matched elements.
|
|
5153
5285
|
* @see \`{@link https://api.jquery.com/html/ }\`
|
|
@@ -5460,7 +5592,9 @@ $( "div" ).one( "click", function() {
|
|
|
5460
5592
|
</html>
|
|
5461
5593
|
```
|
|
5462
5594
|
*/
|
|
5463
|
-
innerHeight(
|
|
5595
|
+
innerHeight(
|
|
5596
|
+
value_function: string | number | ((this: TElement, index: number, height: number) => string | number),
|
|
5597
|
+
): this;
|
|
5464
5598
|
/**
|
|
5465
5599
|
* Get the current computed height for the first element in the set of matched elements, including padding but not border.
|
|
5466
5600
|
* @see \`{@link https://api.jquery.com/innerHeight/ }\`
|
|
@@ -5551,7 +5685,9 @@ modWidth -= 8;
|
|
|
5551
5685
|
</html>
|
|
5552
5686
|
```
|
|
5553
5687
|
*/
|
|
5554
|
-
innerWidth(
|
|
5688
|
+
innerWidth(
|
|
5689
|
+
value_function: string | number | ((this: TElement, index: number, width: number) => string | number),
|
|
5690
|
+
): this;
|
|
5555
5691
|
/**
|
|
5556
5692
|
* Get the current computed inner width for the first element in the set of matched elements, including padding but not border.
|
|
5557
5693
|
* @see \`{@link https://api.jquery.com/innerWidth/ }\`
|
|
@@ -5874,7 +6010,13 @@ $( "li" ).click(function() {
|
|
|
5874
6010
|
</html>
|
|
5875
6011
|
```
|
|
5876
6012
|
*/
|
|
5877
|
-
is(
|
|
6013
|
+
is(
|
|
6014
|
+
selector_function_selection_elements:
|
|
6015
|
+
| JQuery.Selector
|
|
6016
|
+
| JQuery.TypeOrArray<Element>
|
|
6017
|
+
| JQuery
|
|
6018
|
+
| ((this: TElement, index: number, element: TElement) => boolean),
|
|
6019
|
+
): boolean;
|
|
5878
6020
|
/**
|
|
5879
6021
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
5880
6022
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -5887,8 +6029,10 @@ $( "li" ).click(function() {
|
|
|
5887
6029
|
*
|
|
5888
6030
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
5889
6031
|
*/
|
|
5890
|
-
keydown<TData>(
|
|
5891
|
-
|
|
6032
|
+
keydown<TData>(
|
|
6033
|
+
eventData: TData,
|
|
6034
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "keydown">,
|
|
6035
|
+
): this;
|
|
5892
6036
|
/**
|
|
5893
6037
|
* Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
|
|
5894
6038
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -5960,8 +6104,11 @@ $( "#other" ).click(function() {
|
|
|
5960
6104
|
</html>
|
|
5961
6105
|
```
|
|
5962
6106
|
*/
|
|
5963
|
-
keydown(
|
|
5964
|
-
|
|
6107
|
+
keydown(
|
|
6108
|
+
handler?:
|
|
6109
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "keydown">
|
|
6110
|
+
| false,
|
|
6111
|
+
): this;
|
|
5965
6112
|
/**
|
|
5966
6113
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
5967
6114
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -5974,8 +6121,10 @@ $( "#other" ).click(function() {
|
|
|
5974
6121
|
*
|
|
5975
6122
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
5976
6123
|
*/
|
|
5977
|
-
keypress<TData>(
|
|
5978
|
-
|
|
6124
|
+
keypress<TData>(
|
|
6125
|
+
eventData: TData,
|
|
6126
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "keypress">,
|
|
6127
|
+
): this;
|
|
5979
6128
|
/**
|
|
5980
6129
|
* Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
|
|
5981
6130
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6047,8 +6196,11 @@ $( "#other" ).click(function() {
|
|
|
6047
6196
|
</html>
|
|
6048
6197
|
```
|
|
6049
6198
|
*/
|
|
6050
|
-
keypress(
|
|
6051
|
-
|
|
6199
|
+
keypress(
|
|
6200
|
+
handler?:
|
|
6201
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "keypress">
|
|
6202
|
+
| false,
|
|
6203
|
+
): this;
|
|
6052
6204
|
/**
|
|
6053
6205
|
* Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
|
|
6054
6206
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6061,8 +6213,10 @@ $( "#other" ).click(function() {
|
|
|
6061
6213
|
*
|
|
6062
6214
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6063
6215
|
*/
|
|
6064
|
-
keyup<TData>(
|
|
6065
|
-
|
|
6216
|
+
keyup<TData>(
|
|
6217
|
+
eventData: TData,
|
|
6218
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "keyup">,
|
|
6219
|
+
): this;
|
|
6066
6220
|
/**
|
|
6067
6221
|
* Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
|
|
6068
6222
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6135,8 +6289,11 @@ $( "#other").click(function() {
|
|
|
6135
6289
|
</html>
|
|
6136
6290
|
```
|
|
6137
6291
|
*/
|
|
6138
|
-
keyup(
|
|
6139
|
-
|
|
6292
|
+
keyup(
|
|
6293
|
+
handler?:
|
|
6294
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "keyup">
|
|
6295
|
+
| false,
|
|
6296
|
+
): this;
|
|
6140
6297
|
/**
|
|
6141
6298
|
* Reduce the set of matched elements to the final one in the set.
|
|
6142
6299
|
* @see \`{@link https://api.jquery.com/last/ }\`
|
|
@@ -6257,9 +6414,16 @@ $( "#feeds" ).load( "feeds.php", { limit: 25 }, function() {
|
|
|
6257
6414
|
});
|
|
6258
6415
|
```
|
|
6259
6416
|
*/
|
|
6260
|
-
load(
|
|
6261
|
-
|
|
6262
|
-
|
|
6417
|
+
load(
|
|
6418
|
+
url: string,
|
|
6419
|
+
data: string | JQuery.PlainObject,
|
|
6420
|
+
complete: (
|
|
6421
|
+
this: TElement,
|
|
6422
|
+
responseText: string,
|
|
6423
|
+
textStatus: JQuery.Ajax.TextStatus,
|
|
6424
|
+
jqXHR: JQuery.jqXHR,
|
|
6425
|
+
) => void,
|
|
6426
|
+
): this;
|
|
6263
6427
|
/**
|
|
6264
6428
|
* Load data from the server and place the returned HTML into the matched element.
|
|
6265
6429
|
* @param url A string containing the URL to which the request is sent.
|
|
@@ -6339,8 +6503,13 @@ $( "#feeds" ).load( "feeds.html" );
|
|
|
6339
6503
|
$( "#objectID" ).load( "test.php", { "choices[]": [ "Jon", "Susan" ] } );
|
|
6340
6504
|
```
|
|
6341
6505
|
*/
|
|
6342
|
-
load(
|
|
6343
|
-
|
|
6506
|
+
load(
|
|
6507
|
+
url: string,
|
|
6508
|
+
complete_data?:
|
|
6509
|
+
| ((this: TElement, responseText: string, textStatus: JQuery.Ajax.TextStatus, jqXHR: JQuery.jqXHR) => void)
|
|
6510
|
+
| string
|
|
6511
|
+
| JQuery.PlainObject,
|
|
6512
|
+
): this;
|
|
6344
6513
|
/**
|
|
6345
6514
|
* Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
|
|
6346
6515
|
* @param callback A function object that will be invoked for each element in the current set.
|
|
@@ -6486,7 +6655,13 @@ $( "input" ).click(function() {
|
|
|
6486
6655
|
</html>
|
|
6487
6656
|
```
|
|
6488
6657
|
*/
|
|
6489
|
-
map<TReturn>(
|
|
6658
|
+
map<TReturn>(
|
|
6659
|
+
callback: (
|
|
6660
|
+
this: TElement,
|
|
6661
|
+
index: number,
|
|
6662
|
+
domElement: TElement,
|
|
6663
|
+
) => JQuery.TypeOrArray<TReturn> | null | undefined,
|
|
6664
|
+
): JQuery<TReturn>;
|
|
6490
6665
|
/**
|
|
6491
6666
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6492
6667
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6499,8 +6674,10 @@ $( "input" ).click(function() {
|
|
|
6499
6674
|
*
|
|
6500
6675
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6501
6676
|
*/
|
|
6502
|
-
mousedown<TData>(
|
|
6503
|
-
|
|
6677
|
+
mousedown<TData>(
|
|
6678
|
+
eventData: TData,
|
|
6679
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mousedown">,
|
|
6680
|
+
): this;
|
|
6504
6681
|
/**
|
|
6505
6682
|
* Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
|
|
6506
6683
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6538,8 +6715,11 @@ $( "p" )
|
|
|
6538
6715
|
</html>
|
|
6539
6716
|
```
|
|
6540
6717
|
*/
|
|
6541
|
-
mousedown(
|
|
6542
|
-
|
|
6718
|
+
mousedown(
|
|
6719
|
+
handler?:
|
|
6720
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mousedown">
|
|
6721
|
+
| false,
|
|
6722
|
+
): this;
|
|
6543
6723
|
/**
|
|
6544
6724
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6545
6725
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6552,8 +6732,10 @@ $( "p" )
|
|
|
6552
6732
|
*
|
|
6553
6733
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6554
6734
|
*/
|
|
6555
|
-
mouseenter<TData>(
|
|
6556
|
-
|
|
6735
|
+
mouseenter<TData>(
|
|
6736
|
+
eventData: TData,
|
|
6737
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mouseenter">,
|
|
6738
|
+
): this;
|
|
6557
6739
|
/**
|
|
6558
6740
|
* Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
|
|
6559
6741
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6634,8 +6816,11 @@ $( "div.enterleave" )
|
|
|
6634
6816
|
</html>
|
|
6635
6817
|
```
|
|
6636
6818
|
*/
|
|
6637
|
-
mouseenter(
|
|
6638
|
-
|
|
6819
|
+
mouseenter(
|
|
6820
|
+
handler?:
|
|
6821
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseenter">
|
|
6822
|
+
| false,
|
|
6823
|
+
): this;
|
|
6639
6824
|
/**
|
|
6640
6825
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6641
6826
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6648,8 +6833,10 @@ $( "div.enterleave" )
|
|
|
6648
6833
|
*
|
|
6649
6834
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6650
6835
|
*/
|
|
6651
|
-
mouseleave<TData>(
|
|
6652
|
-
|
|
6836
|
+
mouseleave<TData>(
|
|
6837
|
+
eventData: TData,
|
|
6838
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mouseleave">,
|
|
6839
|
+
): this;
|
|
6653
6840
|
/**
|
|
6654
6841
|
* Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
|
|
6655
6842
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6728,8 +6915,11 @@ $( "div.enterleave" )
|
|
|
6728
6915
|
</html>
|
|
6729
6916
|
```
|
|
6730
6917
|
*/
|
|
6731
|
-
mouseleave(
|
|
6732
|
-
|
|
6918
|
+
mouseleave(
|
|
6919
|
+
handler?:
|
|
6920
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseleave">
|
|
6921
|
+
| false,
|
|
6922
|
+
): this;
|
|
6733
6923
|
/**
|
|
6734
6924
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6735
6925
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6742,8 +6932,10 @@ $( "div.enterleave" )
|
|
|
6742
6932
|
*
|
|
6743
6933
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6744
6934
|
*/
|
|
6745
|
-
mousemove<TData>(
|
|
6746
|
-
|
|
6935
|
+
mousemove<TData>(
|
|
6936
|
+
eventData: TData,
|
|
6937
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mousemove">,
|
|
6938
|
+
): this;
|
|
6747
6939
|
/**
|
|
6748
6940
|
* Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
|
|
6749
6941
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6807,8 +6999,11 @@ $( "div" ).mousemove(function( event ) {
|
|
|
6807
6999
|
</html>
|
|
6808
7000
|
```
|
|
6809
7001
|
*/
|
|
6810
|
-
mousemove(
|
|
6811
|
-
|
|
7002
|
+
mousemove(
|
|
7003
|
+
handler?:
|
|
7004
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mousemove">
|
|
7005
|
+
| false,
|
|
7006
|
+
): this;
|
|
6812
7007
|
/**
|
|
6813
7008
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
6814
7009
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6821,8 +7016,10 @@ $( "div" ).mousemove(function( event ) {
|
|
|
6821
7016
|
*
|
|
6822
7017
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6823
7018
|
*/
|
|
6824
|
-
mouseout<TData>(
|
|
6825
|
-
|
|
7019
|
+
mouseout<TData>(
|
|
7020
|
+
eventData: TData,
|
|
7021
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mouseout">,
|
|
7022
|
+
): this;
|
|
6826
7023
|
/**
|
|
6827
7024
|
* Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
|
|
6828
7025
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6903,8 +7100,11 @@ $( "div.enterleave" )
|
|
|
6903
7100
|
</html>
|
|
6904
7101
|
```
|
|
6905
7102
|
*/
|
|
6906
|
-
mouseout(
|
|
6907
|
-
|
|
7103
|
+
mouseout(
|
|
7104
|
+
handler?:
|
|
7105
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseout">
|
|
7106
|
+
| false,
|
|
7107
|
+
): this;
|
|
6908
7108
|
/**
|
|
6909
7109
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
6910
7110
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -6917,8 +7117,10 @@ $( "div.enterleave" )
|
|
|
6917
7117
|
*
|
|
6918
7118
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
6919
7119
|
*/
|
|
6920
|
-
mouseover<TData>(
|
|
6921
|
-
|
|
7120
|
+
mouseover<TData>(
|
|
7121
|
+
eventData: TData,
|
|
7122
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mouseover">,
|
|
7123
|
+
): this;
|
|
6922
7124
|
/**
|
|
6923
7125
|
* Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
|
|
6924
7126
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -6999,8 +7201,11 @@ $( "div.enterleave" )
|
|
|
6999
7201
|
</html>
|
|
7000
7202
|
```
|
|
7001
7203
|
*/
|
|
7002
|
-
mouseover(
|
|
7003
|
-
|
|
7204
|
+
mouseover(
|
|
7205
|
+
handler?:
|
|
7206
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseover">
|
|
7207
|
+
| false,
|
|
7208
|
+
): this;
|
|
7004
7209
|
/**
|
|
7005
7210
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7006
7211
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -7013,8 +7218,10 @@ $( "div.enterleave" )
|
|
|
7013
7218
|
*
|
|
7014
7219
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
7015
7220
|
*/
|
|
7016
|
-
mouseup<TData>(
|
|
7017
|
-
|
|
7221
|
+
mouseup<TData>(
|
|
7222
|
+
eventData: TData,
|
|
7223
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "mouseup">,
|
|
7224
|
+
): this;
|
|
7018
7225
|
/**
|
|
7019
7226
|
* Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
|
|
7020
7227
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -7052,8 +7259,11 @@ $( "p" )
|
|
|
7052
7259
|
</html>
|
|
7053
7260
|
```
|
|
7054
7261
|
*/
|
|
7055
|
-
mouseup(
|
|
7056
|
-
|
|
7262
|
+
mouseup(
|
|
7263
|
+
handler?:
|
|
7264
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "mouseup">
|
|
7265
|
+
| false,
|
|
7266
|
+
): this;
|
|
7057
7267
|
/**
|
|
7058
7268
|
* 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.
|
|
7059
7269
|
* @param selector A string containing a selector expression to match elements against.
|
|
@@ -7317,7 +7527,13 @@ $( "p" ).not( "#selected" );
|
|
|
7317
7527
|
$( "p" ).not( $( "div p.selected" ) );
|
|
7318
7528
|
```
|
|
7319
7529
|
*/
|
|
7320
|
-
not(
|
|
7530
|
+
not(
|
|
7531
|
+
selector_function_selection:
|
|
7532
|
+
| JQuery.Selector
|
|
7533
|
+
| JQuery.TypeOrArray<Element>
|
|
7534
|
+
| JQuery
|
|
7535
|
+
| ((this: TElement, index: number, element: TElement) => boolean),
|
|
7536
|
+
): this;
|
|
7321
7537
|
/**
|
|
7322
7538
|
* Remove an event handler.
|
|
7323
7539
|
* @param events One or more space-separated event types and optional namespaces, or just namespaces, such as
|
|
@@ -7388,8 +7604,9 @@ $( "body" ).off( "click", "p", foo );
|
|
|
7388
7604
|
off<TType extends string>(
|
|
7389
7605
|
events: TType,
|
|
7390
7606
|
selector: JQuery.Selector,
|
|
7391
|
-
handler:
|
|
7392
|
-
|
|
7607
|
+
handler:
|
|
7608
|
+
| JQuery.TypeEventHandler<TElement, any, any, any, TType>
|
|
7609
|
+
| false,
|
|
7393
7610
|
): this;
|
|
7394
7611
|
/**
|
|
7395
7612
|
* Remove an event handler.
|
|
@@ -7422,9 +7639,10 @@ $( "form" ).off( ".validator" );
|
|
|
7422
7639
|
*/
|
|
7423
7640
|
off<TType extends string>(
|
|
7424
7641
|
events: TType,
|
|
7425
|
-
selector_handler?:
|
|
7426
|
-
|
|
7427
|
-
|
|
7642
|
+
selector_handler?:
|
|
7643
|
+
| JQuery.Selector
|
|
7644
|
+
| JQuery.TypeEventHandler<TElement, any, any, any, TType>
|
|
7645
|
+
| false,
|
|
7428
7646
|
): this;
|
|
7429
7647
|
/**
|
|
7430
7648
|
* Remove an event handler.
|
|
@@ -7434,8 +7652,7 @@ $( "form" ).off( ".validator" );
|
|
|
7434
7652
|
* @see \`{@link https://api.jquery.com/off/ }\`
|
|
7435
7653
|
* @since 1.7
|
|
7436
7654
|
*/
|
|
7437
|
-
off(events: JQuery.TypeEventHandlers<TElement, any, any, any>,
|
|
7438
|
-
selector?: JQuery.Selector): this;
|
|
7655
|
+
off(events: JQuery.TypeEventHandlers<TElement, any, any, any>, selector?: JQuery.Selector): this;
|
|
7439
7656
|
/**
|
|
7440
7657
|
* Remove an event handler.
|
|
7441
7658
|
* @param event A jQuery.Event object.
|
|
@@ -7484,7 +7701,11 @@ $( "p:last" ).offset({ top: 10, left: 30 });
|
|
|
7484
7701
|
</html>
|
|
7485
7702
|
```
|
|
7486
7703
|
*/
|
|
7487
|
-
offset(
|
|
7704
|
+
offset(
|
|
7705
|
+
coordinates_function:
|
|
7706
|
+
| JQuery.CoordinatesPartial
|
|
7707
|
+
| ((this: TElement, index: number, coords: JQuery.Coordinates) => JQuery.CoordinatesPartial),
|
|
7708
|
+
): this;
|
|
7488
7709
|
/**
|
|
7489
7710
|
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
|
7490
7711
|
* @see \`{@link https://api.jquery.com/offset/ }\`
|
|
@@ -7619,12 +7840,11 @@ $( "*", document.body ).click(function( event ) {
|
|
|
7619
7840
|
* @see \`{@link https://api.jquery.com/on/ }\`
|
|
7620
7841
|
* @since 1.7
|
|
7621
7842
|
*/
|
|
7622
|
-
on<TType extends string,
|
|
7623
|
-
TData>(
|
|
7843
|
+
on<TType extends string, TData>(
|
|
7624
7844
|
events: TType,
|
|
7625
7845
|
selector: JQuery.Selector,
|
|
7626
7846
|
data: TData,
|
|
7627
|
-
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType
|
|
7847
|
+
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType>,
|
|
7628
7848
|
): this;
|
|
7629
7849
|
/**
|
|
7630
7850
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -7636,12 +7856,11 @@ $( "*", document.body ).click(function( event ) {
|
|
|
7636
7856
|
* @see \`{@link https://api.jquery.com/on/ }\`
|
|
7637
7857
|
* @since 1.7
|
|
7638
7858
|
*/
|
|
7639
|
-
on<TType extends string,
|
|
7640
|
-
TData>(
|
|
7859
|
+
on<TType extends string, TData>(
|
|
7641
7860
|
events: TType,
|
|
7642
7861
|
selector: null | undefined,
|
|
7643
7862
|
data: TData,
|
|
7644
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType
|
|
7863
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType>,
|
|
7645
7864
|
): this;
|
|
7646
7865
|
/**
|
|
7647
7866
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -7654,10 +7873,12 @@ $( "*", document.body ).click(function( event ) {
|
|
|
7654
7873
|
* @since 1.7
|
|
7655
7874
|
* @deprecated Deprecated. Use \`{@link JQuery.Event }\` in place of \`{@link JQueryEventObject }\`.
|
|
7656
7875
|
*/
|
|
7657
|
-
on(
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7876
|
+
on(
|
|
7877
|
+
events: string,
|
|
7878
|
+
selector: JQuery.Selector | null | undefined,
|
|
7879
|
+
data: any,
|
|
7880
|
+
handler: (event: JQueryEventObject) => void,
|
|
7881
|
+
): this;
|
|
7661
7882
|
/**
|
|
7662
7883
|
* Attach an event handler function for one or more events to the selected elements.
|
|
7663
7884
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
@@ -7721,8 +7942,9 @@ $( "body" ).on( "click", "a", function( event ) {
|
|
|
7721
7942
|
on<TType extends string>(
|
|
7722
7943
|
events: TType,
|
|
7723
7944
|
selector: JQuery.Selector,
|
|
7724
|
-
handler:
|
|
7725
|
-
|
|
7945
|
+
handler:
|
|
7946
|
+
| JQuery.TypeEventHandler<TElement, undefined, any, any, TType>
|
|
7947
|
+
| false,
|
|
7726
7948
|
): this;
|
|
7727
7949
|
/**
|
|
7728
7950
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -7739,11 +7961,10 @@ function myHandler( event ) {
|
|
|
7739
7961
|
$( "p" ).on( "click", { foo: "bar" }, myHandler );
|
|
7740
7962
|
```
|
|
7741
7963
|
*/
|
|
7742
|
-
on<TType extends string,
|
|
7743
|
-
TData>(
|
|
7964
|
+
on<TType extends string, TData>(
|
|
7744
7965
|
events: TType,
|
|
7745
7966
|
data: TData,
|
|
7746
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType
|
|
7967
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType>,
|
|
7747
7968
|
): this;
|
|
7748
7969
|
/**
|
|
7749
7970
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -7815,9 +8036,7 @@ function myHandler( event ) {
|
|
|
7815
8036
|
$( "p" ).on( "click", { foo: "bar" }, myHandler );
|
|
7816
8037
|
```
|
|
7817
8038
|
*/
|
|
7818
|
-
on(events: string,
|
|
7819
|
-
selector_data: any,
|
|
7820
|
-
handler: ((event: JQueryEventObject) => void)): this;
|
|
8039
|
+
on(events: string, selector_data: any, handler: (event: JQueryEventObject) => void): this;
|
|
7821
8040
|
/**
|
|
7822
8041
|
* Attach an event handler function for one or more events to the selected elements.
|
|
7823
8042
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
@@ -7911,8 +8130,9 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
7911
8130
|
*/
|
|
7912
8131
|
on<TType extends string>(
|
|
7913
8132
|
events: TType,
|
|
7914
|
-
handler:
|
|
7915
|
-
|
|
8133
|
+
handler:
|
|
8134
|
+
| JQuery.TypeEventHandler<TElement, undefined, TElement, TElement, TType>
|
|
8135
|
+
| false,
|
|
7916
8136
|
): this;
|
|
7917
8137
|
/**
|
|
7918
8138
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -8005,8 +8225,7 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
8005
8225
|
});
|
|
8006
8226
|
```
|
|
8007
8227
|
*/
|
|
8008
|
-
on(events: string,
|
|
8009
|
-
handler: ((event: JQueryEventObject) => void)): this;
|
|
8228
|
+
on(events: string, handler: (event: JQueryEventObject) => void): this;
|
|
8010
8229
|
/**
|
|
8011
8230
|
* Attach an event handler function for one or more events to the selected elements.
|
|
8012
8231
|
* @param events An object in which the string keys represent one or more space-separated event types and optional
|
|
@@ -8020,7 +8239,7 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
8020
8239
|
on<TData>(
|
|
8021
8240
|
events: JQuery.TypeEventHandlers<TElement, TData, any, any>,
|
|
8022
8241
|
selector: JQuery.Selector,
|
|
8023
|
-
data: TData
|
|
8242
|
+
data: TData,
|
|
8024
8243
|
): this;
|
|
8025
8244
|
/**
|
|
8026
8245
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -8035,7 +8254,7 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
8035
8254
|
on<TData>(
|
|
8036
8255
|
events: JQuery.TypeEventHandlers<TElement, TData, TElement, TElement>,
|
|
8037
8256
|
selector: null | undefined,
|
|
8038
|
-
data: TData
|
|
8257
|
+
data: TData,
|
|
8039
8258
|
): this;
|
|
8040
8259
|
/**
|
|
8041
8260
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -8046,9 +8265,7 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
8046
8265
|
* @see \`{@link https://api.jquery.com/on/ }\`
|
|
8047
8266
|
* @since 1.7
|
|
8048
8267
|
*/
|
|
8049
|
-
on(events: JQuery.TypeEventHandlers<TElement, undefined, any, any>,
|
|
8050
|
-
selector: JQuery.Selector
|
|
8051
|
-
): this;
|
|
8268
|
+
on(events: JQuery.TypeEventHandlers<TElement, undefined, any, any>, selector: JQuery.Selector): this;
|
|
8052
8269
|
/**
|
|
8053
8270
|
* Attach an event handler function for one or more events to the selected elements.
|
|
8054
8271
|
* @param events An object in which the string keys represent one or more space-separated event types and optional
|
|
@@ -8059,7 +8276,7 @@ $( "#cart" ).on( "mouseenter mouseleave", function( event ) {
|
|
|
8059
8276
|
*/
|
|
8060
8277
|
on<TData>(
|
|
8061
8278
|
events: JQuery.TypeEventHandlers<TElement, TData, TElement, TElement>,
|
|
8062
|
-
data: TData
|
|
8279
|
+
data: TData,
|
|
8063
8280
|
): this;
|
|
8064
8281
|
/**
|
|
8065
8282
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -8120,12 +8337,11 @@ $( "div.test" ).on({
|
|
|
8120
8337
|
* @see \`{@link https://api.jquery.com/one/ }\`
|
|
8121
8338
|
* @since 1.7
|
|
8122
8339
|
*/
|
|
8123
|
-
one<TType extends string,
|
|
8124
|
-
TData>(
|
|
8340
|
+
one<TType extends string, TData>(
|
|
8125
8341
|
events: TType,
|
|
8126
8342
|
selector: JQuery.Selector,
|
|
8127
8343
|
data: TData,
|
|
8128
|
-
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType
|
|
8344
|
+
handler: JQuery.TypeEventHandler<TElement, TData, any, any, TType>,
|
|
8129
8345
|
): this;
|
|
8130
8346
|
/**
|
|
8131
8347
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8137,12 +8353,11 @@ $( "div.test" ).on({
|
|
|
8137
8353
|
* @see \`{@link https://api.jquery.com/one/ }\`
|
|
8138
8354
|
* @since 1.7
|
|
8139
8355
|
*/
|
|
8140
|
-
one<TType extends string,
|
|
8141
|
-
TData>(
|
|
8356
|
+
one<TType extends string, TData>(
|
|
8142
8357
|
events: TType,
|
|
8143
8358
|
selector: null | undefined,
|
|
8144
8359
|
data: TData,
|
|
8145
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType
|
|
8360
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType>,
|
|
8146
8361
|
): this;
|
|
8147
8362
|
/**
|
|
8148
8363
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8157,8 +8372,9 @@ $( "div.test" ).on({
|
|
|
8157
8372
|
one<TType extends string>(
|
|
8158
8373
|
events: TType,
|
|
8159
8374
|
selector: JQuery.Selector,
|
|
8160
|
-
handler:
|
|
8161
|
-
|
|
8375
|
+
handler:
|
|
8376
|
+
| JQuery.TypeEventHandler<TElement, undefined, any, any, TType>
|
|
8377
|
+
| false,
|
|
8162
8378
|
): this;
|
|
8163
8379
|
/**
|
|
8164
8380
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8168,11 +8384,10 @@ $( "div.test" ).on({
|
|
|
8168
8384
|
* @see \`{@link https://api.jquery.com/one/ }\`
|
|
8169
8385
|
* @since 1.7
|
|
8170
8386
|
*/
|
|
8171
|
-
one<TType extends string,
|
|
8172
|
-
TData>(
|
|
8387
|
+
one<TType extends string, TData>(
|
|
8173
8388
|
events: TType,
|
|
8174
8389
|
data: TData,
|
|
8175
|
-
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType
|
|
8390
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, TType>,
|
|
8176
8391
|
): this;
|
|
8177
8392
|
/**
|
|
8178
8393
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8264,8 +8479,9 @@ $(".target").one("click mouseenter", function() {
|
|
|
8264
8479
|
*/
|
|
8265
8480
|
one<TType extends string>(
|
|
8266
8481
|
events: TType,
|
|
8267
|
-
handler:
|
|
8268
|
-
|
|
8482
|
+
handler:
|
|
8483
|
+
| JQuery.TypeEventHandler<TElement, undefined, TElement, TElement, TType>
|
|
8484
|
+
| false,
|
|
8269
8485
|
): this;
|
|
8270
8486
|
/**
|
|
8271
8487
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8280,7 +8496,7 @@ $(".target").one("click mouseenter", function() {
|
|
|
8280
8496
|
one<TData>(
|
|
8281
8497
|
events: JQuery.TypeEventHandlers<TElement, TData, any, any>,
|
|
8282
8498
|
selector: JQuery.Selector,
|
|
8283
|
-
data: TData
|
|
8499
|
+
data: TData,
|
|
8284
8500
|
): this;
|
|
8285
8501
|
/**
|
|
8286
8502
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8295,7 +8511,7 @@ $(".target").one("click mouseenter", function() {
|
|
|
8295
8511
|
one<TData>(
|
|
8296
8512
|
events: JQuery.TypeEventHandlers<TElement, TData, TElement, TElement>,
|
|
8297
8513
|
selector: null | undefined,
|
|
8298
|
-
data: TData
|
|
8514
|
+
data: TData,
|
|
8299
8515
|
): this;
|
|
8300
8516
|
/**
|
|
8301
8517
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8306,8 +8522,7 @@ $(".target").one("click mouseenter", function() {
|
|
|
8306
8522
|
* @see \`{@link https://api.jquery.com/one/ }\`
|
|
8307
8523
|
* @since 1.7
|
|
8308
8524
|
*/
|
|
8309
|
-
one(events: JQuery.TypeEventHandlers<TElement, undefined, any, any>,
|
|
8310
|
-
selector: JQuery.Selector): this;
|
|
8525
|
+
one(events: JQuery.TypeEventHandlers<TElement, undefined, any, any>, selector: JQuery.Selector): this;
|
|
8311
8526
|
/**
|
|
8312
8527
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
8313
8528
|
* @param events An object in which the string keys represent one or more space-separated event types and optional
|
|
@@ -8318,7 +8533,7 @@ $(".target").one("click mouseenter", function() {
|
|
|
8318
8533
|
*/
|
|
8319
8534
|
one<TData>(
|
|
8320
8535
|
events: JQuery.TypeEventHandlers<TElement, TData, TElement, TElement>,
|
|
8321
|
-
data: TData
|
|
8536
|
+
data: TData,
|
|
8322
8537
|
): this;
|
|
8323
8538
|
/**
|
|
8324
8539
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -8383,8 +8598,10 @@ $( "div" ).one( "click", function() {
|
|
|
8383
8598
|
</html>
|
|
8384
8599
|
```
|
|
8385
8600
|
*/
|
|
8386
|
-
outerHeight(
|
|
8387
|
-
|
|
8601
|
+
outerHeight(
|
|
8602
|
+
value_function: string | number | ((this: TElement, index: number, height: number) => string | number),
|
|
8603
|
+
includeMargin?: boolean,
|
|
8604
|
+
): this;
|
|
8388
8605
|
/**
|
|
8389
8606
|
* Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements.
|
|
8390
8607
|
* @param includeMargin A Boolean indicating whether to include the element's margin in the calculation.
|
|
@@ -8477,8 +8694,10 @@ $( "div" ).one( "click", function() {
|
|
|
8477
8694
|
</html>
|
|
8478
8695
|
```
|
|
8479
8696
|
*/
|
|
8480
|
-
outerWidth(
|
|
8481
|
-
|
|
8697
|
+
outerWidth(
|
|
8698
|
+
value_function: string | number | ((this: TElement, index: number, width: number) => string | number),
|
|
8699
|
+
includeMargin?: boolean,
|
|
8700
|
+
): this;
|
|
8482
8701
|
/**
|
|
8483
8702
|
* Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements.
|
|
8484
8703
|
* @param includeMargin A Boolean indicating whether to include the element's margin in the calculation.
|
|
@@ -8893,7 +9112,13 @@ $( "p" ).prepend( $( "b" ) );
|
|
|
8893
9112
|
* @see \`{@link https://api.jquery.com/prepend/ }\`
|
|
8894
9113
|
* @since 1.4
|
|
8895
9114
|
*/
|
|
8896
|
-
prepend(
|
|
9115
|
+
prepend(
|
|
9116
|
+
funсtion: (
|
|
9117
|
+
this: TElement,
|
|
9118
|
+
index: number,
|
|
9119
|
+
html: string,
|
|
9120
|
+
) => JQuery.htmlString | JQuery.TypeOrArray<JQuery.Node | JQuery<JQuery.Node>>,
|
|
9121
|
+
): this;
|
|
8897
9122
|
/**
|
|
8898
9123
|
* Insert every element in the set of matched elements to the beginning of the target.
|
|
8899
9124
|
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements
|
|
@@ -8927,7 +9152,9 @@ $( "span" ).prependTo( "#foo" );
|
|
|
8927
9152
|
</html>
|
|
8928
9153
|
```
|
|
8929
9154
|
*/
|
|
8930
|
-
prependTo(
|
|
9155
|
+
prependTo(
|
|
9156
|
+
target: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray<Element | DocumentFragment> | JQuery,
|
|
9157
|
+
): this;
|
|
8931
9158
|
/**
|
|
8932
9159
|
* 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.
|
|
8933
9160
|
* @param selector A string containing a selector expression to match elements against.
|
|
@@ -9235,8 +9462,18 @@ $( "button" ).on( "click", function() {
|
|
|
9235
9462
|
* @see \`{@link https://api.jquery.com/prop/ }\`
|
|
9236
9463
|
* @since 1.6
|
|
9237
9464
|
*/
|
|
9238
|
-
prop(
|
|
9239
|
-
|
|
9465
|
+
prop(
|
|
9466
|
+
propertyName: string,
|
|
9467
|
+
value_function:
|
|
9468
|
+
| string
|
|
9469
|
+
| number
|
|
9470
|
+
| boolean
|
|
9471
|
+
| symbol
|
|
9472
|
+
| object
|
|
9473
|
+
| null
|
|
9474
|
+
| undefined
|
|
9475
|
+
| ((this: TElement, index: number, oldPropertyValue: any) => any),
|
|
9476
|
+
): this;
|
|
9240
9477
|
/**
|
|
9241
9478
|
* Set one or more properties for the set of matched elements.
|
|
9242
9479
|
* @param properties An object of property-value pairs to set.
|
|
@@ -9806,7 +10043,11 @@ $( "p:eq(1)" ).removeClass();
|
|
|
9806
10043
|
</html>
|
|
9807
10044
|
```
|
|
9808
10045
|
*/
|
|
9809
|
-
removeClass(
|
|
10046
|
+
removeClass(
|
|
10047
|
+
className_function?:
|
|
10048
|
+
| JQuery.TypeOrArray<string>
|
|
10049
|
+
| ((this: TElement, index: number, className: string) => string),
|
|
10050
|
+
): this;
|
|
9810
10051
|
/**
|
|
9811
10052
|
* Remove a previously-stored piece of data.
|
|
9812
10053
|
* @param name A string naming the piece of data to delete.
|
|
@@ -10074,14 +10315,18 @@ $( "button" ).on( "click", function() {
|
|
|
10074
10315
|
</html>
|
|
10075
10316
|
```
|
|
10076
10317
|
*/
|
|
10077
|
-
replaceWith(
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10318
|
+
replaceWith(
|
|
10319
|
+
newContent_function:
|
|
10320
|
+
| JQuery.htmlString
|
|
10321
|
+
| JQuery<JQuery.Node>
|
|
10322
|
+
| JQuery.TypeOrArray<Element>
|
|
10323
|
+
| JQuery.Node
|
|
10324
|
+
| ((this: TElement, index: number, oldhtml: JQuery.htmlString) =>
|
|
10325
|
+
| JQuery.htmlString
|
|
10326
|
+
| JQuery<JQuery.Node>
|
|
10327
|
+
| JQuery.TypeOrArray<Element>
|
|
10328
|
+
| JQuery.Node),
|
|
10329
|
+
): this;
|
|
10085
10330
|
/**
|
|
10086
10331
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10087
10332
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -10094,8 +10339,10 @@ $( "button" ).on( "click", function() {
|
|
|
10094
10339
|
*
|
|
10095
10340
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
10096
10341
|
*/
|
|
10097
|
-
resize<TData>(
|
|
10098
|
-
|
|
10342
|
+
resize<TData>(
|
|
10343
|
+
eventData: TData,
|
|
10344
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "resize">,
|
|
10345
|
+
): this;
|
|
10099
10346
|
/**
|
|
10100
10347
|
* Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
|
|
10101
10348
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -10113,8 +10360,11 @@ $( window ).resize(function() {
|
|
|
10113
10360
|
});
|
|
10114
10361
|
```
|
|
10115
10362
|
*/
|
|
10116
|
-
resize(
|
|
10117
|
-
|
|
10363
|
+
resize(
|
|
10364
|
+
handler?:
|
|
10365
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "resize">
|
|
10366
|
+
| false,
|
|
10367
|
+
): this;
|
|
10118
10368
|
/**
|
|
10119
10369
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10120
10370
|
* @param eventData An object containing data that will be passed to the event handler.
|
|
@@ -10127,8 +10377,10 @@ $( window ).resize(function() {
|
|
|
10127
10377
|
*
|
|
10128
10378
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
10129
10379
|
*/
|
|
10130
|
-
scroll<TData>(
|
|
10131
|
-
|
|
10380
|
+
scroll<TData>(
|
|
10381
|
+
eventData: TData,
|
|
10382
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "scroll">,
|
|
10383
|
+
): this;
|
|
10132
10384
|
/**
|
|
10133
10385
|
* Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
|
|
10134
10386
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -10178,8 +10430,11 @@ $( window ).scroll(function() {
|
|
|
10178
10430
|
</html>
|
|
10179
10431
|
```
|
|
10180
10432
|
*/
|
|
10181
|
-
scroll(
|
|
10182
|
-
|
|
10433
|
+
scroll(
|
|
10434
|
+
handler?:
|
|
10435
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "scroll">
|
|
10436
|
+
| false,
|
|
10437
|
+
): this;
|
|
10183
10438
|
/**
|
|
10184
10439
|
* Set the current horizontal position of the scroll bar for each of the set of matched elements.
|
|
10185
10440
|
* @param value An integer indicating the new position to set the scroll bar to.
|
|
@@ -10352,8 +10607,10 @@ $( "p:last" ).text( "scrollTop:" + p.scrollTop() );
|
|
|
10352
10607
|
*
|
|
10353
10608
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
10354
10609
|
*/
|
|
10355
|
-
select<TData>(
|
|
10356
|
-
|
|
10610
|
+
select<TData>(
|
|
10611
|
+
eventData: TData,
|
|
10612
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "select">,
|
|
10613
|
+
): this;
|
|
10357
10614
|
/**
|
|
10358
10615
|
* Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
|
|
10359
10616
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -10402,8 +10659,11 @@ $( ":input" ).select(function() {
|
|
|
10402
10659
|
$( "input" ).select();
|
|
10403
10660
|
```
|
|
10404
10661
|
*/
|
|
10405
|
-
select(
|
|
10406
|
-
|
|
10662
|
+
select(
|
|
10663
|
+
handler?:
|
|
10664
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "select">
|
|
10665
|
+
| false,
|
|
10666
|
+
): this;
|
|
10407
10667
|
/**
|
|
10408
10668
|
* Encode a set of form elements as a string for submission.
|
|
10409
10669
|
* @see \`{@link https://api.jquery.com/serialize/ }\`
|
|
@@ -10706,7 +10966,9 @@ $( "button" ).click(function() {
|
|
|
10706
10966
|
</html>
|
|
10707
10967
|
```
|
|
10708
10968
|
*/
|
|
10709
|
-
show(
|
|
10969
|
+
show(
|
|
10970
|
+
duration_complete_options?: JQuery.Duration | ((this: TElement) => void) | JQuery.EffectsOptions<TElement>,
|
|
10971
|
+
): this;
|
|
10710
10972
|
/**
|
|
10711
10973
|
* Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
|
|
10712
10974
|
* @param selector A string containing a selector expression to match elements against.
|
|
@@ -11019,7 +11281,13 @@ $( document.body ).click(function () {
|
|
|
11019
11281
|
</html>
|
|
11020
11282
|
```
|
|
11021
11283
|
*/
|
|
11022
|
-
slideDown(
|
|
11284
|
+
slideDown(
|
|
11285
|
+
duration_easing_complete_options?:
|
|
11286
|
+
| JQuery.Duration
|
|
11287
|
+
| string
|
|
11288
|
+
| ((this: TElement) => void)
|
|
11289
|
+
| JQuery.EffectsOptions<TElement>,
|
|
11290
|
+
): this;
|
|
11023
11291
|
/**
|
|
11024
11292
|
* Display or hide the matched elements with a sliding motion.
|
|
11025
11293
|
* @param duration A string or number determining how long the animation will run.
|
|
@@ -11143,7 +11411,13 @@ $( "button" ).click(function() {
|
|
|
11143
11411
|
</html>
|
|
11144
11412
|
```
|
|
11145
11413
|
*/
|
|
11146
|
-
slideToggle(
|
|
11414
|
+
slideToggle(
|
|
11415
|
+
duration_easing_complete_options?:
|
|
11416
|
+
| JQuery.Duration
|
|
11417
|
+
| string
|
|
11418
|
+
| ((this: TElement) => void)
|
|
11419
|
+
| JQuery.EffectsOptions<TElement>,
|
|
11420
|
+
): this;
|
|
11147
11421
|
/**
|
|
11148
11422
|
* Hide the matched elements with a sliding motion.
|
|
11149
11423
|
* @param duration A string or number determining how long the animation will run.
|
|
@@ -11261,7 +11535,13 @@ $( document.body ).click(function() {
|
|
|
11261
11535
|
</html>
|
|
11262
11536
|
```
|
|
11263
11537
|
*/
|
|
11264
|
-
slideUp(
|
|
11538
|
+
slideUp(
|
|
11539
|
+
duration_easing_complete_options?:
|
|
11540
|
+
| JQuery.Duration
|
|
11541
|
+
| string
|
|
11542
|
+
| ((this: TElement) => void)
|
|
11543
|
+
| JQuery.EffectsOptions<TElement>,
|
|
11544
|
+
): this;
|
|
11265
11545
|
/**
|
|
11266
11546
|
* Stop the currently-running animation on the matched elements.
|
|
11267
11547
|
* @param queue The name of the queue in which to stop animations.
|
|
@@ -11373,8 +11653,10 @@ $( "#toggle" ).on( "click", function() {
|
|
|
11373
11653
|
*
|
|
11374
11654
|
* **Solution**: Instead of `.click(fn)` use `.on("click", fn)`. Instead of `.click()` use `.trigger("click")`.
|
|
11375
11655
|
*/
|
|
11376
|
-
submit<TData>(
|
|
11377
|
-
|
|
11656
|
+
submit<TData>(
|
|
11657
|
+
eventData: TData,
|
|
11658
|
+
handler: JQuery.TypeEventHandler<TElement, TData, TElement, TElement, "submit">,
|
|
11659
|
+
): this;
|
|
11378
11660
|
/**
|
|
11379
11661
|
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
|
|
11380
11662
|
* @param handler A function to execute each time the event is triggered.
|
|
@@ -11443,8 +11725,11 @@ $( "form" ).submit(function() {
|
|
|
11443
11725
|
$( "form:first" ).submit();
|
|
11444
11726
|
```
|
|
11445
11727
|
*/
|
|
11446
|
-
submit(
|
|
11447
|
-
|
|
11728
|
+
submit(
|
|
11729
|
+
handler?:
|
|
11730
|
+
| JQuery.TypeEventHandler<TElement, null, TElement, TElement, "submit">
|
|
11731
|
+
| false,
|
|
11732
|
+
): this;
|
|
11448
11733
|
/**
|
|
11449
11734
|
* Set the content of each element in the set of matched elements to the specified text.
|
|
11450
11735
|
* @param text_function _@param_ `text_function`
|
|
@@ -11483,7 +11768,13 @@ $( "p" ).text( "<b>Some</b> new text." );
|
|
|
11483
11768
|
</html>
|
|
11484
11769
|
```
|
|
11485
11770
|
*/
|
|
11486
|
-
text(
|
|
11771
|
+
text(
|
|
11772
|
+
text_function:
|
|
11773
|
+
| string
|
|
11774
|
+
| number
|
|
11775
|
+
| boolean
|
|
11776
|
+
| ((this: TElement, index: number, text: string) => string | number | boolean),
|
|
11777
|
+
): this;
|
|
11487
11778
|
/**
|
|
11488
11779
|
* Get the combined text contents of each element in the set of matched elements, including their descendants.
|
|
11489
11780
|
* @see \`{@link https://api.jquery.com/text/ }\`
|
|
@@ -11672,7 +11963,13 @@ $( "button" ).click(function() {
|
|
|
11672
11963
|
</html>
|
|
11673
11964
|
```
|
|
11674
11965
|
*/
|
|
11675
|
-
toggle(
|
|
11966
|
+
toggle(
|
|
11967
|
+
duration_complete_options_display?:
|
|
11968
|
+
| JQuery.Duration
|
|
11969
|
+
| ((this: TElement) => void)
|
|
11970
|
+
| JQuery.EffectsOptions<TElement>
|
|
11971
|
+
| boolean,
|
|
11972
|
+
): this;
|
|
11676
11973
|
/**
|
|
11677
11974
|
* 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.
|
|
11678
11975
|
* @param className_function _@param_ `className_function`
|
|
@@ -11844,8 +12141,12 @@ $( "a" ).on( "click", function( event ) {
|
|
|
11844
12141
|
</html>
|
|
11845
12142
|
```
|
|
11846
12143
|
*/
|
|
11847
|
-
toggleClass<TState extends boolean>(
|
|
11848
|
-
|
|
12144
|
+
toggleClass<TState extends boolean>(
|
|
12145
|
+
className_function:
|
|
12146
|
+
| JQuery.TypeOrArray<string>
|
|
12147
|
+
| ((this: TElement, index: number, className: string, state: TState) => string),
|
|
12148
|
+
state?: TState,
|
|
12149
|
+
): this;
|
|
11849
12150
|
/**
|
|
11850
12151
|
* 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.
|
|
11851
12152
|
* @param state A boolean value to determine whether the class should be added or removed.
|
|
@@ -11952,7 +12253,10 @@ $( "body" ).trigger({
|
|
|
11952
12253
|
});
|
|
11953
12254
|
```
|
|
11954
12255
|
*/
|
|
11955
|
-
trigger(
|
|
12256
|
+
trigger(
|
|
12257
|
+
eventType_event: string | JQuery.Event,
|
|
12258
|
+
extraParameters?: any[] | JQuery.PlainObject | string | number | boolean,
|
|
12259
|
+
): this;
|
|
11956
12260
|
/**
|
|
11957
12261
|
* Execute all handlers attached to an element for an event.
|
|
11958
12262
|
* @param eventType_event _@param_ `eventType_event`
|
|
@@ -11995,7 +12299,10 @@ $( "input" ).focus(function() {
|
|
|
11995
12299
|
</html>
|
|
11996
12300
|
```
|
|
11997
12301
|
*/
|
|
11998
|
-
triggerHandler(
|
|
12302
|
+
triggerHandler(
|
|
12303
|
+
eventType_event: string | JQuery.Event,
|
|
12304
|
+
extraParameters?: any[] | JQuery.PlainObject | string | number | boolean,
|
|
12305
|
+
): any;
|
|
11999
12306
|
/**
|
|
12000
12307
|
* Remove a previously-attached event handler from the elements.
|
|
12001
12308
|
* @param event A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
|
|
@@ -12065,8 +12372,9 @@ $( "p" ).unbind( "click", foo ); // ... foo will no longer be called.
|
|
|
12065
12372
|
*/
|
|
12066
12373
|
unbind<TType extends string>(
|
|
12067
12374
|
event: TType,
|
|
12068
|
-
handler:
|
|
12069
|
-
|
|
12375
|
+
handler:
|
|
12376
|
+
| JQuery.TypeEventHandler<TElement, any, TElement, TElement, TType>
|
|
12377
|
+
| false,
|
|
12070
12378
|
): this;
|
|
12071
12379
|
/**
|
|
12072
12380
|
* Remove a previously-attached event handler from the elements.
|
|
@@ -12161,8 +12469,9 @@ $( "body" ).undelegate( "p", "click", foo );
|
|
|
12161
12469
|
undelegate<TType extends string>(
|
|
12162
12470
|
selector: JQuery.Selector,
|
|
12163
12471
|
eventType: TType,
|
|
12164
|
-
handler:
|
|
12165
|
-
|
|
12472
|
+
handler:
|
|
12473
|
+
| JQuery.TypeEventHandler<TElement, any, any, any, TType>
|
|
12474
|
+
| false,
|
|
12166
12475
|
): this;
|
|
12167
12476
|
/**
|
|
12168
12477
|
* Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
|
|
@@ -12180,9 +12489,12 @@ $( "body" ).undelegate( "p", "click", foo );
|
|
|
12180
12489
|
*
|
|
12181
12490
|
* **Solution**: Change the method call to use `.on()` or `.off()`, the documentation for the old methods include specific instructions. In general, the `.bind()` and `.unbind()` methods can be renamed directly to `.on()` and `.off()` respectively since the argument orders are identical.
|
|
12182
12491
|
*/
|
|
12183
|
-
undelegate(
|
|
12184
|
-
|
|
12185
|
-
|
|
12492
|
+
undelegate(
|
|
12493
|
+
selector: JQuery.Selector,
|
|
12494
|
+
eventType_events:
|
|
12495
|
+
| string
|
|
12496
|
+
| JQuery.TypeEventHandlers<TElement, any, any, any>,
|
|
12497
|
+
): this;
|
|
12186
12498
|
/**
|
|
12187
12499
|
* Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
|
|
12188
12500
|
* @param namespace A selector which will be used to filter the event results.
|
|
@@ -12736,7 +13048,14 @@ $( "p" ).wrap( $( ".doublediv" ) );
|
|
|
12736
13048
|
</html>
|
|
12737
13049
|
```
|
|
12738
13050
|
*/
|
|
12739
|
-
wrap(
|
|
13051
|
+
wrap(
|
|
13052
|
+
wrappingElement_function:
|
|
13053
|
+
| JQuery.Selector
|
|
13054
|
+
| JQuery.htmlString
|
|
13055
|
+
| Element
|
|
13056
|
+
| JQuery
|
|
13057
|
+
| ((this: TElement, index: number) => string | JQuery),
|
|
13058
|
+
): this;
|
|
12740
13059
|
/**
|
|
12741
13060
|
* Wrap an HTML structure around all elements in the set of matched elements.
|
|
12742
13061
|
* @param wrappingElement_function _@param_ `wrappingElement_function`
|
|
@@ -12887,7 +13206,14 @@ $( "p" ).wrapAll( $( ".doublediv" ) );
|
|
|
12887
13206
|
</html>
|
|
12888
13207
|
```
|
|
12889
13208
|
*/
|
|
12890
|
-
wrapAll(
|
|
13209
|
+
wrapAll(
|
|
13210
|
+
wrappingElement_function:
|
|
13211
|
+
| JQuery.Selector
|
|
13212
|
+
| JQuery.htmlString
|
|
13213
|
+
| Element
|
|
13214
|
+
| JQuery
|
|
13215
|
+
| ((this: TElement) => string | JQuery),
|
|
13216
|
+
): this;
|
|
12891
13217
|
/**
|
|
12892
13218
|
* Wrap an HTML structure around the content of each element in the set of matched elements.
|
|
12893
13219
|
* @param wrappingElement_function _@param_ `wrappingElement_function`
|
|
@@ -13017,7 +13343,14 @@ $( "p" ).wrapInner( $( "<span class='red'></span>" ) );
|
|
|
13017
13343
|
</html>
|
|
13018
13344
|
```
|
|
13019
13345
|
*/
|
|
13020
|
-
wrapInner(
|
|
13346
|
+
wrapInner(
|
|
13347
|
+
wrappingElement_function:
|
|
13348
|
+
| JQuery.Selector
|
|
13349
|
+
| JQuery.htmlString
|
|
13350
|
+
| Element
|
|
13351
|
+
| JQuery
|
|
13352
|
+
| ((this: TElement, index: number) => string | JQuery | Element),
|
|
13353
|
+
): this;
|
|
13021
13354
|
|
|
13022
13355
|
[n: number]: TElement;
|
|
13023
13356
|
}
|