2017 © Pedro PelĂĄez
 

library ctable

Table management

image

donami/ctable

Table management

  • Saturday, May 7, 2016
  • by donami
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Travis build status Scrutinizer Code Quality Code Coverage, (*1)

CTable - Table module for Anax

CTable is a module for Anax used for creating HTML Tables in an easy manner., (*2)

How to:

Install CTable by using composer:, (*3)

composer require donami/ctable

Usage:

Create a HTML table from array

Use an array to create the table:, (*4)


$di->set('HTMLTable', 'donami\CTable\CTable'); $data = array( array('First', 'Second', 'Third'), array('Fourth', 'Fifth', 'Sixth') ); echo $app->HTMLTable->generate($data);

Will output:, (*5)

<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, (*6)

$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., (*7)

Example: Set the background of the table to purple, (*8)

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

Links: Packagist: https://packagist.org/packages/donami/ctable, (*9)

The Versions

07/05 2016

dev-master

9999999-dev http://bth.se

Table management

  Sources   Download

MIT

The Requires

 

table education

05/05 2016

v1.0

1.0.0.0 http://bth.se

Table management

  Sources   Download

MIT

The Requires

  • php >=5.4

 

table education