1.0.1 β€’ Published 6 months ago

@jubayer11/vue-dynamic-table-builder v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Vue Dynamic Table Builder

Vue 3 Compatible
License: MIT
PRs Welcome
Live Demo
GitHub
npm
Related Package


A powerful, fully customizable table system for Vue 3 β€” supports dynamic configs, smart actions, expandable rows, and deep style control.


✨ Features

  • βœ… Dynamic column configuration with TableConfig
  • 🎨 Deep style overrides via TableStyleConfig
  • 🎯 Slot-based rendering (headers, cells, actions, expandables)
  • πŸ“± Fully responsive layout with breakpoint control
  • πŸŒ‘ Dark mode ready
  • πŸ” Pagination (numbered + load more)
  • 🧠 Built-in support for buttons, icons, routes, and popups
  • 🧩 Modular SCSS and icon system
  • πŸ› οΈ Works great in admin panels, dashboards, and complex UIs

πŸ’‘ Why Use Vue Dynamic Table Builder?

Most table libraries give you props. This one gives you power.

Vue Dynamic Table Builder is not just a UI component β€” it's a configurable system built for real-world apps. Whether you're building an admin dashboard, reporting tool, or a user management system, this package gives you:

  • πŸ”§ Programmatic control with TableConfig and TableStyleConfig
  • 🧩 Full slot flexibility to override headers, cells, and rows
  • πŸŽ›οΈ Smart actions (icon or button) with route or popup behavior
  • 🌐 Responsive layout with breakpoint-based column control
  • 🎨 Fine-grained style overrides by row ID, column index, or default fallback
  • πŸ” Pagination options for both traditional and load-more flows
  • 🧠 Built-in support for expandable rows, action dialogs, status indicators, and more

Use it if you want more than a basic table β€” use it if you want control, structure, and scalability.


πŸ“¦ Installation Guide

1. Install via NPM

npm install @jubayer11/vue-dynamic-table-builder

βœ… No external peer dependencies required.
βœ… Works out of the box with Vue 3.


2. Import Required CSS

The table system includes prebuilt styles using modular SCSS and utility classes.
Import the compiled styles into your project (typically in main.js, main.ts, or App.vue):

import '@jubayer11/vue-dynamic-table-builder/dist/style.css';

βœ… This ensures all table elements, icons, pagination, and states are styled correctly.
βœ… Alternatively, you can import it directly inside any component where the table is used.


3. Use in Your Component

import DynamicTable from '@jubayer11/vue-dynamic-table-builder';
import { TableConfig, TableStyleConfig, ResponsiveColumnConfig } from '@jubayer11/vue-dynamic-table-builder';

Use <DynamicTable /> in your template and configure it with TableConfig and TableStyleConfig as needed.


πŸ”§ Optional: Local Development (Testing Source Code)

If you want to test or contribute to the package locally:

git clone https://github.com/jubayer11/vue-dynamic-table-builder.git
cd vue-dynamic-table-builder
npm install
npm run dev       # Start local dev server
npm run build     # Build for production

βœ… You're Ready!

You’re now ready to build dynamic, flexible, and beautifully styled tables with full control over actions, styles, responsiveness, and slots.

Need help? Check out the Full Documentation or Live Demo.


⚑ Minimal Setup Example

<script setup>
import { computed, reactive } from 'vue';
import DynamicTable from '@jubayer11/vue-dynamic-table-builder';
import {
  TableConfig,
  TableStyleConfig,
  ResponsiveColumnConfig
} from '@jubayer11/vue-dynamic-table-builder';

const config = reactive(new TableConfig());
const styleConfig = new TableStyleConfig();
const dataShow = new ResponsiveColumnConfig(2);

config.updateHeaders(['Name', 'Email']);
config.updateData([
  ['Alice', 'alice@example.com'],
  ['Bob', 'bob@example.com'],
]);
config.updateTotalColumn(2);
config.updateDataShow(dataShow);

const myTable = computed(() => config);
const myTableStyle = computed(() => styleConfig);
</script>

<template>
  <DynamicTable
    :myTable="myTable"
    :customStyle="myTableStyle"
  />
</template>

For full usage examples, advanced configurations, and style overrides, view the full documentation.


πŸ§ͺ Demo Gallery

Explore real-world examples of how you can use @jubayer11/vue-dynamic-table-builder to create highly interactive, scalable, and fully styled tables.

Each demo is available inside the demo/ folder.

DemoHighlights
Basic TableMinimal setup with headers and rows
Multiple Action TableDynamic action column with icons like view/edit/delete
Action Button TableAction buttons with pop-up and route triggers
Rich Status + ButtonsStatus indicators with success/cancel buttons
Selectable + Per Page TableCheckbox row selection + per-page dropdown
Expandable Row TableFully expandable rows with nested data
Pagination Modes TableLoad more vs. numbered pagination switching
Crazy Style TableDeep styling overrides via TableStyleConfig
Slot Column DemoFull slot control over cell content
All Features CombinedReal-world admin panel with everything enabled

πŸ”— Live Demo: https://jubayer11.github.io/vue-dynamic-table-builder/


πŸ“‚ Where to Find Demo Files

DemoFile Location
Basic Tablesrc/demo/components/BasicTableDemo.vue
Multiple Action Tablesrc/demo/components/MultipleActionTableDemo.vue
Action Button Tablesrc/demo/components/ActionButtonTableDemo.vue
Rich Status + Buttonssrc/demo/components/RichStatusActionButtonsDemo.vue
Selectable + Per Pagesrc/demo/components/SelectablePerPageTableDemo.vue
Expandable Row Tablesrc/demo/components/ExpandableRowDemo.vue
Pagination Modessrc/demo/components/PaginationModesDemo.vue
Crazy Style Tablesrc/demo/components/CrazyStyleTableDemo.vue
Slot Column Demosrc/demo/components/SlotColumnDemo.vue
All Features Combinedsrc/demo/components/AllFeaturesCombinedDemo.vue

βœ… All demos are real, modular, and built with production workflows in mind.


πŸ“œ License

MIT License Β© 2025 Jubayer Ahmed
Open Source

πŸ“’ This package is proudly open source under the MIT License.
Feel free to use, modify, and contribute β€” together we build better tools.


πŸ™Œ Credits

Designed and developed with ❀️ by Jubayer Ahmed (Portfolio)
Built for dynamic UIs β€’ Designed for control β€’ Powered by real experience


🎯 Final Touches

  • Vue 3 + Composition API native
  • Action column: route, popup, or neither
  • Expandable rows with style and slot control
  • Per-ID/per-index deep style overrides
  • Styled using modular SCSS + utility tokens
  • Inspired by production UI needs β€” not just UI kits

πŸ”— Related Projects

Looking for a dynamic form system to pair with this table?

πŸ‘‰ Check out @jubayer11/vue-dynamic-form-builder
A schema-based Vue 3 form builder with field config, validation, layout control, and scoped styling.


✨ End of README ✨

If you find this project useful, consider starring ⭐ the repository β€” it helps others discover it too!

🀝 Interested in contributing?
Feel free to open issues, suggest improvements, or submit pull requests β€” collaboration is always welcome!