How to use the @dojo/widgets/tab-controller.Align.top function in @dojo/widgets

To help you get started, we’ve selected a few @dojo/widgets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dojo / examples / widget-showcase / src / widgets / Tabs.ts View on Github external
export default factory(function Tabs({ middleware: { icache } }) {
	const activeIndex = icache.get('active') || 0;

	return w(
		TabController,
		{
			alignButtons: Align.top,
			activeIndex: activeIndex,
			onRequestTabChange: (index: number) => {
				icache.set('active', index);
			}
		},
		[
			w(
				Tab,
				{
					key: 'button-tab',
					label: 'Basic Form Widgets'
				},
				[w(BasicFormTab, {})]
			),
			w(
				Tab,
github dojo / widgets / src / examples / src / widgets / tab-controller / ButtonAlignment.tsx View on Github external
export default factory(function ButtonAlignment({ middleware: { icache } }) {
	const activeIndex = icache.getOrSet('active', 0);
	const alignButtons = icache.getOrSet('align', Align.top);
	return (
		<div>
			<select> {
					icache.set('align', value);
				}}
			/&gt;
			</select></div>
github dojo / widgets / src / examples / src / widgets / tab-controller / ButtonAlignment.tsx View on Github external
export default factory(function ButtonAlignment({ middleware: { icache } }) {
	const activeIndex = icache.getOrSet('active', 0);
	const alignButtons = icache.getOrSet('align', Align.top);
	return (
		<div>
			<select> {
					icache.set('align', value);
				}}
			/&gt;
			 {
					icache.set('active', index);
				}}
			&gt;
				</select></div>