mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
useAnimation made optional in Callout
useAnimation should be optional in Callout close and open. I couldn't find any official documentation on this, but SharePoint defaults to false if it is not set:
this.close = function(useAnimation) {
useAnimation = m$.isBoolean(useAnimation) ? useAnimation : false;
Examples online also shows that this argument should be optional:
http://blog.alexboev.com/2012/08/custom-callouts-in-sharepoint-2013_21.html
This commit is contained in:
4
sharepoint/SharePoint.d.ts
vendored
4
sharepoint/SharePoint.d.ts
vendored
@@ -861,9 +861,9 @@ declare class Callout {
|
||||
/** Re-renders the actions menu. Call after the actions menu is changed. */
|
||||
refreshActions(): void;
|
||||
/** Display the callout. Animation can be used only for IE9+ */
|
||||
open(useAnimation: boolean);
|
||||
open(useAnimation?: boolean);
|
||||
/** Hide the callout. Animation can be used only for IE9+ */
|
||||
close(useAnimation: boolean);
|
||||
close(useAnimation?: boolean);
|
||||
/** Display if hidden, hide if shown. */
|
||||
toggle(): void;
|
||||
/** Do not call this directly. Instead, use CalloutManager.remove */
|
||||
|
||||
Reference in New Issue
Block a user