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