本文整理汇总了TypeScript中dojo-widgets/createWidget.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: createWidget
import createWidget from 'dojo-widgets/createWidget';
export default createWidget();
示例2: createWidget
{ id: 'panel-resize', classes: [ 'vertical', 'border-right', 'pad-1em' ], width: '200px' },
{ id: 'remove', label: 'Remove', name: 'remove' },
{ id: 'first-name', name: 'first-name', value: 'qat' },
{ id: 'add', label: 'Add', name: 'add' },
{ id: 'list', classes: [ 'margin-1em' ], items: listItems }
]
});
const widgets: Renderable[] = [];
/**
* A header widget
*/
const header = createWidget({
id: 'header',
stateFrom: widgetStore,
tagName: 'h1'
});
widgets.push(header);
const layoutContainer = createLayoutContainer({
id: 'layout-container',
stateFrom: widgetStore
});
widgets.push(layoutContainer);
projector.append(widgets);
const panelFixed = createPanel({
示例3: createWidget
import createWidget from 'dojo-widgets/createWidget';
export const member1 = createWidget();
export const member2 = createWidget();
示例4: createLayoutContainer
const layoutPanel = createLayoutContainer({
id: 'layout-panel',
stateFrom: widgetStore
});
widgets.push(layoutPanel);
const sidebar = createResizePanel({
id: 'sidebar',
stateFrom: widgetStore
});
layoutPanel.append(sidebar);
sidebar.append(createWidget({
id: 'sidebar-nav',
stateFrom: widgetStore
}));
const button = createButton({
id: 'button',
stateFrom: widgetStore
});
button.on('click', createAction({
type: 'update',
do() {
dgrid.invalidate();
}
}));
sidebar.append(button);