mmenu-js
Version:
The best javascript plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.
29 lines (25 loc) • 505 B
text/typescript
const options : mmOptionsScreenreader = {
aria: true,
text: true
};
export default options;
/**
* Extend shorthand options.
*
* @param {object} options The options to extend.
* @return {object} The extended options.
*/
export function extendShorthandOptions(
options : mmOptionsScreenreader
) : mmOptionsScreenreader {
if ( typeof options == 'boolean' ) {
options = {
aria: options,
text: options
};
}
if ( typeof options != 'object' ) {
options = {};
}
return options;
};