承接 donami/ctable 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

donami/ctable

Composer 安装命令:

composer require donami/ctable

包简介

Table management

README 文档

README

Travis build status Scrutinizer Code Quality Code Coverage

CTable - Table module for Anax

CTable is a module for Anax used for creating HTML Tables in an easy manner.

How to:

Install CTable by using composer:

composer require donami/ctable

Usage:

Create a HTML table from array

Use an array to create the table:

$di->set('HTMLTable', 'donami\CTable\CTable');

$data = array(
  array('First', 'Second', 'Third'),
  array('Fourth', 'Fifth', 'Sixth')
);

echo $app->HTMLTable->generate($data);

Will output:

<table>
  <tr>
    <td>First</td>
    <td>Second</td>
    <td>Third</td>
  </tr>
  <tr>
    <td>Fourth</td>
    <td>Fifth</td>
    <td>Sixth</td>
  </tr>
</table>

One by one

This is useful when looping through data

$di->set('HTMLTable', 'donami\CTable\CTable');

$app->HTMLTable->create_row(array('First', 'Second', 'Third'));
$app->HTMLTable->create_row(array('Fourth', 'Fifth', 'Sixth'));
echo $app->HTMLTable->generate();

Defining tags:

Used for customizing the style of the table.

Example: Set the background of the table to purple

$app->HTMLTable->defineTags(array('table_start' => '<table style="background: purple">'));

Links: Packagist: https://packagist.org/packages/donami/ctable

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固