Back





AvalynxLoader & AvalynxTable Integration: This example demonstrates the seamless integration of AvalynxLoader (custom loading spinner) and AvalynxTable (responsive stacking on mobile breakpoints) with AvalynxDataTable.

Source of exampleCopy to clipboard


new AvalynxDataTable("avalynx-datatable", {
	apiUrl: "php/result.php",
	perPage: 10,
	search: "",
	sorting: {
		"name": "asc",
		"age": "desc"
	},
	className: "avalynx-table avalynx-table-md table table-striped table-bordered table-responsive align-middle",
	loader: new AvalynxLoader('#avalynx-datatable', {
		className: 'spinner-border text-danger',
	})
}, {});
	
AvalynxDataTable on GitHub Avalynx on GitHub