定制 darkanakin41/table-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

darkanakin41/table-bundle

Composer 安装命令:

composer require darkanakin41/table-bundle

包简介

Pierre LEJEUNE TableBundle

README 文档

README

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

统计信息

  • 总下载量: 105
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固