### Basic HTML Pagination Setup Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx This is a simplified HTML example for enabling pagination. It's recommended to adapt this to your specific framework. ```html ``` -------------------------------- ### Full Active Table Example with Data and Styling Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx This example demonstrates a complete Active Table setup with data, styling, and export configurations. It's intended for Vanilla JS but can be adapted to other frameworks. ```html ``` -------------------------------- ### Full Active Table Example with File Options and Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx A comprehensive example demonstrating the Active Table component with configured file import/export buttons and sample data. This setup is suitable for direct use in HTML. ```html ``` -------------------------------- ### Full Active Table with Pagination and Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx This example demonstrates a complete Active Table setup with pagination enabled and sample data. It includes custom pagination styles and table styling. ```html ``` -------------------------------- ### Install Dependencies and Build Wrapper Source: https://github.com/ovidijusparsiunas/active-table/blob/main/other-packages/react/README.md Run these commands in your terminal to install Node.js dependencies and build the React wrapper. ```bash # Install node dependencies: $ npm install ``` ```bash # Build the wrapper: $ npm run build ``` -------------------------------- ### Start Local Development Server Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/README.md Use this command to automatically build and serve the project locally for development. ```bash # automatically build and serve: $ npm run start ``` -------------------------------- ### Full HTML Example with Data and Styling Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx This comprehensive HTML example shows the `` element with pagination configured, including sample data and table styling. It's noted as a Vanilla JS example and suggests tailoring for specific frameworks. ```html ``` -------------------------------- ### Install Node Dependencies Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/README.md Run this command to install the necessary Node.js dependencies for the project. ```bash # Install node dependencies: $ npm install ``` -------------------------------- ### Full HTML Filter Example with Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/filter.mdx This example demonstrates enabling filtering with data directly in the HTML for a Vanilla JS setup. Tailor this to your specific framework. ```html ``` -------------------------------- ### Full ActiveTable Example with Custom Column Type Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/columnType.mdx This example demonstrates a complete ActiveTable setup using a custom column type defined with an SVG icon. It includes data and basic table styling. Note that the `customColumnTypes` is provided as an HTML attribute. ```html ``` -------------------------------- ### Full Active Table with Custom Column Type Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/columnType.mdx Demonstrates a complete Active Table setup including custom column type configuration and data. This example is for Vanilla JS but can be adapted to other frameworks. ```html ``` -------------------------------- ### Install active-table via npm Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/installation.mdx Use this command to install the core active-table component via npm. ```bash npm install active-table ``` -------------------------------- ### Full ActiveTable Example with Data and Styling (HTML) Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx A comprehensive HTML example demonstrating the ActiveTable component with configured file import buttons, sample data, and custom table styling. Includes notes for Vanilla JS usage and external module imports. ```html ``` -------------------------------- ### Configure Dropdown Display Settings with Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/sharedTypes.mdx Full example showing how to configure dropdown display settings along with table data using HTML attributes. This example is for Vanilla JS and may need tailoring for specific frameworks. ```html ``` -------------------------------- ### Full Example: Active Table with Programmatic Updates Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/methods.mdx This example demonstrates initializing an Active Table with data and then using JavaScript to continuously update random cells. It's intended for Vanilla JS and may need adaptation for other frameworks. ```html ``` -------------------------------- ### Install Active Table via CDN (Vanilla JS) Source: https://context7.com/ovidijusparsiunas/active-table/llms.txt Load the Active Table component directly from a CDN for use in Vanilla JS projects. This includes the component script and an example usage with data and table styling. ```html ``` -------------------------------- ### Full Circle Pagination Example Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx A complete example demonstrating circle pagination buttons with data and table styling. This snippet includes the HTML structure for the active-table component with pagination and data attributes. ```html ``` -------------------------------- ### Install active-table-react via npm Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/installation.mdx For React projects, install the active-table-react package instead. ```bash npm install active-table-react ``` -------------------------------- ### Full ActiveTable Configuration with Data and Styling Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx Demonstrates a complete ActiveTable setup including drag and drop configuration, data binding, and table styling for a planetary dataset. ```html ``` -------------------------------- ### Install Active Table via npm Source: https://context7.com/ovidijusparsiunas/active-table/llms.txt Install Active Table and its React-specific package using npm. Import the component into your JavaScript or TypeScript files. ```bash npm install active-table # or for React npm install active-table-react ``` ```javascript // Vanilla JS / Vue / Svelte / Angular import 'active-table'; // React / Next.js import { ActiveTable } from 'active-table-react'; ``` -------------------------------- ### Full HTML Example of Active Table with Filter and Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/filter.mdx This example shows a complete 'active-table' HTML element with filter styles, data, and table styling applied. It serves as a reference for vanilla JavaScript usage. ```html ``` -------------------------------- ### Basic HTML Filter Setup Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/filter.mdx A simple HTML tag to enable filtering in an ActiveTable component. This is a basic setup for demonstration. ```html ``` -------------------------------- ### Basic ActiveTable with File Import Configuration (HTML) Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx A simplified HTML example showing how to configure file import buttons for the ActiveTable component. This version omits the data and tableStyle for brevity. ```html ``` -------------------------------- ### Basic Pagination Configuration Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx Configure the number of rows per page and options for the rows per page selector. This example uses the React component API. ```jsx import React from "react"; import { ActiveTable, TableContainer } from "@/components/ui/active-table"; function App() { return ( ); } export default App; ``` -------------------------------- ### Full HTML Pagination with Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx This example demonstrates enabling pagination with data directly in HTML attributes. Note the use of JSON string for the 'data' attribute. ```html ``` -------------------------------- ### Enable Pagination in Active Table Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx Use the `pagination` prop set to `true` to enable pagination. This example shows basic integration with sample data. ```jsx import ActiveTable from '@site/src/components/table/activeTableBrowser'; import TableContainer from '@site/src/components/table/tableContainer'; ``` -------------------------------- ### Configure File Import Options for Active Table Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/files.mdx Use the 'files' prop to specify import options, such as 'importRowStartIndex' and 'tableRowStartIndex'. This example shows how to set these for an import button. ```html ``` -------------------------------- ### Basic Pagination Styling Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx Configure the appearance of pagination buttons, including default, active, action, and disabled states. This example sets custom colors, borders, and margins for page buttons. ```html ``` -------------------------------- ### HTML: Pagination with Data Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx This example demonstrates how to use the active-table web component with pagination and data defined directly in HTML. Ensure the 'data' attribute is a valid JSON string. ```html ``` -------------------------------- ### Build and Serve for Production Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/README.md Commands to build the project for production and then serve it. ```bash # build and serve for production: $ npm run build $ npm run serve ``` -------------------------------- ### Build Component Source: https://github.com/ovidijusparsiunas/active-table/blob/main/component/README.md Execute this command to build the component. This is typically done before serving or bundling. ```bash # Build the component: $ npm run build ``` -------------------------------- ### HTML Element Pagination Configuration Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/pagination.mdx Configure pagination using HTML attributes for the custom element. This example shows basic setup for rows per page and options. ```html ``` -------------------------------- ### Active Table with Data Starting at Header Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/header.mdx Enables the 'dataStartsAtHeader' option to include the header row in index counting and pagination. This example shows the basic attribute usage. ```html ``` ```html ``` -------------------------------- ### Define Custom Column Type with SVG Icon (HTML Attribute) Source: https://github.com/ovidijusparsiunas/active-table/blob/main/website/docs/docs/columnType.mdx When setting `customColumnTypes` as an HTML attribute, use backslash \\ syntax to escape quotes within the JSON string. This example shows a basic setup for a custom column type with an SVG icon. ```html ```