本文整理匯總了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);