mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
266 B
TypeScript
18 lines
266 B
TypeScript
|
|
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');
|