How to use the @dojo/widgets/grid/utils.createFetcher 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 / widgets / src / examples / src / widgets / grid / Sorting.tsx View on Github external
id: 'id',
		title: 'ID'
	},
	{
		id: 'firstName',
		title: 'First Name',
		sortable: true
	},
	{
		id: 'lastName',
		title: 'Last Name',
		sortable: true
	}
];

const fetcher = createFetcher(createData());
const factory = create();

export default factory(() => {
	return ;
});
github dojo / widgets / src / examples / src / widgets / grid / Filtering.tsx View on Github external
{
		id: 'middleName',
		title: 'Middle Name'
	},
	{
		id: 'lastName',
		title: 'Last Name',
		filterable: true
	},
	{
		id: 'otherName',
		title: 'Other Name'
	}
];

const fetcher = createFetcher(createData());
const factory = create();

export default factory(() => {
	return ;
});
github dojo / examples / widget-showcase / src / widgets / tabs / GridTab.ts View on Github external
export default factory(function GridTab({ middleware: { icache } }) {
	const data = icache.getOrSet('data', generateData(10000));
	return v('div', { classes: css.root }, [
		w(Grid, {
			columnConfig: columnConfig,
			fetcher: createFetcher(data),
			updater: createUpdater(data),
			height: 400
		})
	]);
});
github dojo / widgets / src / examples / src / widgets / grid / CustomSortRenderer.tsx View on Github external
id: 'id',
		title: 'ID'
	},
	{
		id: 'firstName',
		title: 'First Name',
		sortable: true
	},
	{
		id: 'lastName',
		title: 'Last Name',
		sortable: true
	}
];

const fetcher = createFetcher(createData());
const factory = create();

export default factory(() => {
	return (
		 {
					let classes = [css.sort, 'fa', 'fa-sort'];
					if (direction === 'asc') {
						classes = [css.sort, 'fa', 'fa-sort-amount-asc'];
					} else if (direction === 'desc') {
						classes = [css.sort, 'fa', 'fa-sort-amount-desc'];
					}
github dojo / widgets / src / examples / src / widgets / grid / Paginated.tsx View on Github external
{
		id: 'middleName',
		title: 'Middle Name'
	},
	{
		id: 'lastName',
		title: 'Last Name',
		filterable: true
	},
	{
		id: 'otherName',
		title: 'Other Name'
	}
];

const fetcher = createFetcher(createData());
const factory = create();

export default factory(function ColumnResize() {
	return ;
});
github dojo / widgets / src / examples / src / widgets / grid / CustomCellRenderer.tsx View on Github external
target="_blank"
						href={`https://www.google.com/search?q=${item.value}`}
					>
						{item.value}
					
				
			);
		}
	},
	{
		id: 'lastName',
		title: 'Last Name'
	}
];

const fetcher = createFetcher(createData());
const factory = create();

export default factory(() => {
	return ;
});
github dojo / widgets / src / examples / src / widgets / grid / EditableCells.tsx View on Github external
title: 'ID'
	},
	{
		id: 'firstName',
		title: 'First Name',
		editable: false
	},
	{
		id: 'lastName',
		title: 'Last Name',
		editable: false
	}
];

const data = createData();
const fetcher = createFetcher(data);
const updater = createUpdater(data);
const factory = create();

export default factory(() => {
	return ;
});