Super Layout Table Extension for Directus
A powerful and feature-rich table layout extension for Directus 11+ that enhances the default table view with advanced functionality including inline editing, quick filters, bookmarks, and custom cell rendering.

Version
v0.2.7 - Stable release
š Top Features
š Multi-Language Translations
Display and edit translations in multiple languages simultaneously as separate columns. Perfect for managing multilingual content with ease.
āļø Column Renaming
Rename table columns on-the-fly without changing the underlying field names. Create user-friendly labels for better readability.
šØ Quick Filters with Colors & Icons
Create custom filter buttons with personalized colors and icons for instant data filtering. Visual organization at its best.
š Global Table Search
Powerful search functionality across all table fields, including nested relations and translations. Find anything, anywhere in your data.
šļø View & Edit Mode
Switch seamlessly between read-only view mode and interactive edit mode. Control when and how users can modify data.
š¼ļø Advanced Image Display & Selection
Smart image handling with hover preview, proper aspect ratios, and built-in file browser for selecting media files directly from table cells.
š Deep Duplication
Duplicate items with all their relationships and translations. Perfect for creating variations of complex data structures.
Display Features
- Custom Cell Rendering - Specialized display for different field types
- Relationship Support - Handle M2O, O2M, M2M, M2A relationships with deep data access
- Image Preview - Inline image display with lightbox support and file browser
- Status Indicators - Visual representation of boolean and select fields
- Translation Support - Display multiple language translations as separate columns
- Column Alignment - Configurable text alignment per column (left, center, right)
Performance
- Optimized Loading - Default 1000 rows with efficient pagination
- Smart Caching - Intelligent data caching for better performance
- Lazy Loading - Load data as needed for large datasets
Installation
For detailed information about installing extensions in Directus, see the official documentation.
Via Package Manager (Recommended)
Install the extension using your preferred package manager:
# Using pnpm
pnpm add directus-extension-super-table
# Using npm
npm install directus-extension-super-table
# Using yarn
yarn add directus-extension-super-table
After installation, restart Directus to load the extension:
# If using Docker
docker-compose restart directus
# If running locally
npx directus start
From Source
-
Clone or download the extension to your Directus extensions folder:
cd /path/to/directus/extensions git clone https://github.com/yourusername/super-layout-table.git -
Install dependencies:
cd super-layout-table pnpm install # or npm install -
Build the extension:
pnpm build # or npm run build -
Restart Directus to load the extension
Configuration
- Navigate to your collection settings in Directus Admin Panel
- Click on "Layout Options" in the collection settings
- Select "Super Layout Table" from the layout dropdown
- Configure the layout options according to your needs
- Save your changes
Usage Guide
Quick Filters
Quick Filters provide fast access to frequently used filter combinations:
- Creating a Filter: Click the "+" button in the Quick Filters section
- Configure Filter: Set field, operator, and value
- Save Filter: Give it a name and optional color
- Using Filters: Click filter buttons to toggle them on/off
- Filter States:
- Gray (OFF) - Filter not applied
- Blue (Active) - Filter applied with visual indicators
Inline Editing
Edit data directly in the table without opening a separate form:
- Entering Edit Mode: Click on any editable cell
- Editor Types:
- Text fields: Simple input or WYSIWYG editor
- Boolean: Checkbox toggle
- Select: Dropdown menu
- Date/Time: Full date picker with calendar
- Color: Color picker with alignment support
- Image/File: Enhanced file browser with larger previews (⨠IMPROVED in v0.2.6)
- Unified Header Actions (⨠NEW in v0.2.3):
- Save/Cancel buttons now in popover header for all field types
- Consistent UI across all editors
- Icon-only buttons matching native Directus style
- Saving: Click save button (ā) or press Enter
- Canceling: Click cancel button (ā) or press Escape
Column Management
Customize which columns are displayed and how:
- Add Columns: Click "+" button in the table header
- Remove Columns: Use column selector to hide columns
- Rename Columns: Right-click header and select "Rename"
- Reorder Columns: Drag column headers to reorder
- Resize Columns: Drag column borders to resize
Bookmarks
Save table configurations for quick access:
- Save Bookmark: Configure table, then click bookmark icon ā "Save Current"
- Load Bookmark: Select from bookmark dropdown
- Update Bookmark: Load bookmark, make changes, save with same name
- Delete Bookmark: Right-click bookmark and select delete
Project Structure
super-layout-table/
āāā src/
ā āāā index.ts # Extension entry point
ā āāā super-layout-table.vue # Main component
ā āāā actions.vue # Row/bulk actions component
ā āāā types.ts # TypeScript definitions
ā āāā constants.ts # Constants and defaults
ā āāā components/
ā āāā InlineEditPopover.vue # Inline editor popover
ā āāā QuickFilters.vue # Quick filter management
ā āāā CellRenderers/ # Custom cell renderers
ā āāā ImageCell.vue # Image display
ā āāā SelectCell.vue # Select/status display
ā āāā BooleanCell.vue # Boolean checkbox
āāā composables/
ā āāā api.ts # API operations
ā āāā useAliasFields.ts # Field aliasing logic
ā āāā useLanguageSelector.ts # Translation language selection
āāā utils/
ā āāā adjustFieldsForDisplays.ts # Display field adjustments
ā āāā getDefaultDisplayForType.ts # Default display mapping
āāā package.json # Package configuration
āāā tsconfig.json # TypeScript configuration
āāā README.md # This file
Development
Prerequisites
- Node.js 18+
- pnpm package manager
- Directus 11.0.0+
Setup Development Environment
# Install dependencies
pnpm install
# Start development build with watch mode
pnpm dev
# Build for production
pnpm build
# Run linter
pnpm lint
# Type checking
pnpm type-check
# Run all quality checks
pnpm quality
# Fix linting issues
pnpm lint:fix
# Format code
pnpm format
š GitHub Actions & CI/CD
This extension includes comprehensive GitHub Actions workflows for maintaining code quality:
Automated Quality Checks
Every push and pull request triggers automated quality validation:
- TypeScript Type Checking - Ensures type safety across the codebase
- ESLint - Enforces code quality standards (0 errors, 0 warnings)
- Prettier - Validates consistent code formatting
- Build Validation - Confirms the extension builds successfully
Workflow Files
.github/workflows/
āāā quality-checks.yml # Main quality validation (runs on push/PR)
āāā pr-checks.yml # PR-specific checks with auto-comments
āāā release.yml # Automated release creation on tags
āāā badges.yml # Status badge updates
Running Locally
You can run the same checks locally before pushing:
# Run all quality checks at once
pnpm run quality
# Individual checks
pnpm run type-check # TypeScript validation
pnpm run lint # ESLint checks
pnpm run format:check # Prettier validation
pnpm run build # Build test
Pull Request Workflow
- Create your feature branch
- Make your changes
- Run
pnpm run qualitylocally - Push to GitHub
- GitHub Actions will automatically validate your code
- PR will receive an automated quality report comment
Extension Configuration
The extension can be configured through the Directus interface with these options:
{
// Number of items to load initially
defaultRowCount: 1000,
// Row height: 'compact' | 'cozy' | 'comfortable'
rowHeight: 'comfortable',
// Selection mode: 'none' | 'single' | 'multiple'
showSelect: 'multiple',
// Enable fixed header
fixedHeader: true,
// Allow column resizing
showResize: true,
// Enable inline editing
allowInlineEdit: true,
// Enable bookmark system
allowBookmarks: true,
// Enable quick filters
allowQuickFilters: true
}
API Reference
Events
The extension emits the following events:
update:selection- When item selection changesupdate:filters- When filters are modifiedupdate:search- When search query changesupdate:limit- When page size changesupdate:page- When current page changesupdate:sort- When sort order changesupdate:fields- When visible fields change
Composables
Available composables for extension development:
useApi()- API operations wrapperuseAliasFields()- Field aliasing for complex queriesuseLanguageSelector()- Translation language management
Browser Support
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
Contributing
Contributions are welcome! Please follow these guidelines:
- Fork the repository
- Create a feature branch
- Make your changes
- Add/update tests as needed
- Submit a pull request
Code Style
- Use TypeScript with explicit types
- Follow Vue 3 Composition API patterns
- Maintain consistent code formatting
- Add JSDoc comments for public APIs
Troubleshooting
Extension not loading
- Ensure the extension is in the correct directory
- Check Directus logs for errors
- Verify all dependencies are installed
- Try clearing browser cache
Inline editing not working
- Check field permissions in Directus
- Ensure fields are not read-only
- Verify field types are supported
Performance issues
- Reduce default row count
- Enable pagination for large datasets
- Check browser console for errors
Changelog
See CHANGELOG.md for a detailed version history.
License
MIT License - See LICENSE file for details
Support
For issues, questions, or feature requests, please create an issue in the repository.
Credits
Built for Directus 11+ by the community. Special thanks to all contributors and testers.