Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Table Bundle Laravel Package

darkanakin41/table-bundle

View on GitHub
Deep Wiki
Context7

darkanakin41/table-bundle

Actions Status Total Downloads Latest Stable Version

This bundle is designed to grant functionnalities to create simple table based on entities.

Current available template :

Features

  • Create a table base on an entity
  • Select a custom template for all table
  • Select a custom template for specific table

Installation

First, install dependencies (next chapter)

Simply import it into your project with composer

composer require darkanakin41/table-bundle

Dependencies

Configuration

Configuration is, at the moment, rather basic :

darkanakin41_table:
    template:
        # Select the template for all fields
        fields: '@Darkanakin41Table/foundation/fields.html.twig'
        # Select the template for all table
        table: '@Darkanakin41Table/foundation/table.html.twig'

Usage

In order to use the bundle, you must declare your own Table class which will extends Darkanakin41\TableBundle\Definition\AbstractTable

Then, you'll have to override method public function __init__() in order to define the differents columns you need

Next, you'll need to pass the table to the view and in the template, use a twig extension from the bundle to display it :

{{ darkanakin41_table_render(table) }}

TODO

  • Add another way of displaying search form
  • Add template for bootstrap
  • Create a more complete documentation on the table, the fields available and the way of override templates
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator