FTable is a clean, vanilla JavaScript rewrite of the popular jTable
plugin, designed for modern web apps.
✅ No dependencies
✅ Dynamic forms & async fields
✅ Localization
✅ Responsive
✅ MIT Licensed
FTable is a clean, vanilla JavaScript rewrite of the popular jTable
plugin, designed for modern web apps.
✅ Create, Read, Update, Delete
✅ Sorting, Paging, Filtering
✅ Dynamic dependent fields
✅ Ajax loading for data and options
✅ Localization via JTable.setMessages(...)
✅ Modal forms
✅ CSV export, Print
✅ User preferences (localStorage)
npm install @liedekef/ftable
As a standalone script:
<link href="ftable/themes/lightcolor/gray/ftable.css" rel="stylesheet">
<script src="js/ftable/ftable.js"></script>
const table = new FTable('#table', {
actions: {
listAction: '/api/users',
createAction: '/api/users/add',
updateAction: '/api/users/update',
deleteAction: '/api/users/delete'
},
fields: {
id: { key: true, list: false },
name: { title: 'Name' },
email: { title: 'Email', type: 'email' }
}
});
As a module:
import '@liedekef/ftable/ftable.css';
import FTable from '@liedekef/ftable';
const table = new FTable('#table', {
actions: {
listAction: '/api/users',
createAction: '/api/users/add',
updateAction: '/api/users/update',
deleteAction: '/api/users/delete'
},
fields: {
id: { key: true, list: false },
name: { title: 'Name' },
email: { title: 'Email', type: 'email' }
}
});
See the wiki for documentation, demos, themes and more...