Skip to content

Commit

Permalink
Add dojox/widget/Standby typings. (dojo#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
hparkertt committed May 3, 2019
1 parent 3374072 commit 4b8190e
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dojox/1.11/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ declare module 'dojox/widget/Toaster' {
const Toaster: dojox.widget.ToasterConstructor;
export = Toaster;
}

declare module 'dojox/widget/Standby' {
type Standby = dojox.widget.Standby;
const Standby: dojox.widget.StandbyConstructor;
export = Standby;
}
91 changes: 91 additions & 0 deletions dojox/1.11/widget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,96 @@ declare namespace dojox {
}

interface ToasterConstructor extends dijit._WidgetBaseConstructor<Toaster> {}

interface Standby extends dijit._Widget, dijit._TemplatedMixin {

/**
* Property to define if the image and its alt text should be used, or a simple Text/HTML noe should be used.
*/
centerIndicator: string;

/**
* The color to set the overlay.
*/
color: string;

/**
* Integer defining how long the show and hide effects should take in milliseconds.
*/
duration: number;

/**
* A URL to an image to center within the blocking overlay.
*/
image: string;

/**
* Text to set on the ALT tag of the image.
*/
imageText: string;

/**
* The opacity to make the overlay when it is displayed/faded in.
*/
opacity: number;

/**
* The target to overlay when active.
*/
target: string;

/**
* The template string defining out the basics of the widget.
*/
templateString: string;

/**
* Text/HTML to display in the center of the overlay This is used if image center is disabled.
*/
text: string;

/**
* Control that lets you specify if the zIndex for the overlay shold be auto-computed based off parent zIndex, or should be set to a particular value.
*/
zIndex: string;

/**
* Function to hide the blocking overlay and status icon or text.
*/
hide(): void;

/**
* Helper function so you can test if the widget is already visible or not.
*/
isVisible(): boolean;

/**
* Function to display the blocking overlay and busy/status icon or text.
*/
show(): void;

/**
* Over-ride of the basic widget startup function.
* @param args
*/
startup(): void;

/**
* Over-ride to hide the widget, which clears intervals, before cleanup.
*/
uninitialize(): boolean;

/**
* Event that fires when the display of the Standby completes.
*/
onHide(): void;

/**
* Event that fires when the display of the Standby completes.
*/
onShow(): void;
}

interface StandbyConstructor extends dijit._WidgetBaseConstructor<Standby> { }
}
}

0 comments on commit 4b8190e

Please sign in to comment.