JavaScript Libraries
Integrate our lightweight, performant JavaScript libraries into your project effortlessly.
CDN Integration
Include the following script tag in your project to use LinqApi’s JavaScript components:
<script src="https://cdn.linqjs.com/linq.v1.0.0.min.js"
integrity="sha384-RHlaXhs3O6e7jauYB0yQmcgbt2pmY3QCRXeNnMlth7vq+1OeJ9TRWywlGmurNtP8"
crossorigin="anonymous"
type="module"></script>
Using the Components
Once the CDN script is loaded, you can import and utilize components in your JS modules like so:
import { LinqDataTable } from '/_content/LinqApi.Razor/js/index.js';
const table = new LinqDataTable({
endpoint: '/api/products/filterpaged',
target: '#grid'
});
Additional Tips
For more examples and advanced usage, refer to our documentation sections and GitHub repository.