mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add typing definitions for bootstrap-menu * Fix TypeScript version depending on JQuery * Fix tests * Fix more errors * Fix white space * Fix default export function * Fix types as mentionned in Pull Request * Fix export errors * Add destroy and close functions to make the build pass
13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
import BootstrapMenu = require("bootstrap-menu");
|
|
|
|
const menu = new BootstrapMenu("#main", {
|
|
actions: [
|
|
{
|
|
name: "Main menu action",
|
|
onClick: (element: any) => {
|
|
console.log(element);
|
|
}
|
|
}
|
|
]
|
|
});
|