##// END OF EJS Templates
Added tag v1.0.10 for changeset d4f0cdae9577
Added tag v1.0.10 for changeset d4f0cdae9577

File last commit:

r2:8ec37bf1b4d1 default
r61:a5ead1578dfc default
Show More
wai.d.ts
56 lines | 1.5 KiB | video/mp2t | TypeScriptLexer
import dijit = require("../main");
declare module "dojo/_base/kernel" {
interface Dijit {
/**
* Determines if an element has a particular role.
*/
hasWaiRole(elem: Element, role: string): boolean;
/**
* Gets the role for an element (which should be a wai role).
*/
getWaiRole(elem: Element): string;
/**
* Sets the role on an element.
*/
setWaiRole(elem: Element, role: string): void;
/**
* Removes the specified role from an element.
* Removes role attribute if no specific role provided (for backwards compat.)
*/
removeWaiRole(elem: Element, role: string): void;
/**
* Determines if an element has a given state.
*
* Checks for an attribute called "aria-"+state.
*/
hasWaiState(elem: Element, state: string): boolean;
/**
* Gets the value of a state on an element.
*
* Checks for an attribute called "aria-"+state.
*/
getWaiState(elem: Element, state: string): string;
/**
* Sets a state on an element.
*
* Sets an attribute called "aria-"+state.
*/
setWaiState(elem: Element, state: string, value: string): void;
/**
* Removes a state from an element.
*
* Sets an attribute called "aria-"+state.
*/
removeWaiState(elem: Element, state: string): void;
}
}
export = dijit;