mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Add typings for contextjs 2.1.1
This commit is contained in:
1 parent
a9c59f8166
commit
476a231fe3
2 files changed
+49
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import context = require("contextjs");
|
||||
|
||||
context.init();
|
||||
|
||||
context.settings({compress: true});
|
||||
|
||||
context.attach('#test', [
|
||||
{header: 'header 1'},
|
||||
{divider: true},
|
||||
{text:'foobar', submenu: [
|
||||
{text:'sub1'},
|
||||
{text:'sub2'}
|
||||
]}
|
||||
]);
|
||||
|
||||
context.destroy('#test');
|
||||
Reference in new issue
Block a user