donquixote / cellbrush Goto Github PK
View Code? Open in Web Editor NEWCellbrush - generate HTML tables with PHP
License: MIT License
Cellbrush - generate HTML tables with PHP
License: MIT License
Line 129 of AttributesTrait
is faulty; it accesses a private
attribute. The $attribute
property of AttributesTrait
used by Tag
class is private, but it is accessed with the following:
$tag->attributes = $this->attributes;
The aforementioned line is Line 129 of AttributesTrait
.
To summarize what happened: Using the AttributeTrait
, class Attributes
accessed the private $attributes
of Tag
class. Although both classes Tag
and Attributes
use the AttributesTrait
that has private $attributes
, they cannot access such property without doing a 'getter'.
Will think of a PR soon.
[The usage of PHP Traits is quite confusing, isn't it?]
Such as <table id="table1">...</table>
Am I mistaken?
The id
attribute is always important.
how do i use this function in php ?
i got an error just like this
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in C:\xampp\htdocs\cellbrush\tests\src\CellbrushTest.php on line 7
thanks in advance
Error: Access level to Donquixote\Cellbrush\Table\Table::renderAttributes() must be public (as in interface Donquixote\Cellbrush\Html\AttributesGetterInterface) in /var/www/lib/Donquixote/Cellbrush/Table/Table.php on line 12
Ok, just I have turned in https://github.com/naomik/htmlgen (simple solution for table rowspan generator)
Hello! I would like to know if it is possible to generate hierarchical tables from a data set in a database?
Is it possible to make one of the following patterns?
id | parent_id | name | sort_order |
---|---|---|---|
1 | 0 | F1 | 1 |
2 | 0 | F2 | 3 |
3 | 0 | F3 | 2 |
4 | 1 | F4 | 1 |
5 | 2 | F5 | 2 |
6 | 1 | F6 | 2 |
7 | 10 | F7 | 1 |
8 | 2 | F8 | 1 |
9 | 10 | F9 | 2 |
10 | 3 | F10 | 2 |
11 | 3 | F11 | 2 |
12 | 9 | F12 | 1 |
13 | 9 | F13 | 2 |
I have a table with a description of the hierarchical structure. The result is to output the following table: https://ibb.co/jg9Wjb
Tell me please, or advise how to implement it with the help of your library?
I can get an array of ancestors and children, like this:
[parents] => Array
(
[F1] =>
[F1.f4] => F1
[F2] =>
[F2.f5] => F2
[F1.f6] => F1
[F3] =>
[F3.F10] => F3
[F3.F10.f7] => F3.F10
[F2.f8] => F2
[F3.F10.f9] => F3.F10
[F3.f10] => F3
[F3.f11] => F3
[F3.F10.F9] => F3.F10
[F3.F10.F9.f12] => F3.F10.F9
[F3.F10.F9.f13] => F3.F10.F9
)
I do not understand how to manipulate such data, namely, to use methods addColName(), addRowName() and th().
I get error:
Access level to Donquixote\Cellbrush\Table\Table::renderAttributes() must be public (as in class Donquixote\Cellbrush\Html\AttributesGetterInterface) in vendor/donquixote/cellbrush/src/Table/Table.php on line 111
I have tried with Laravel 5.4(Installation). Error: "Class 'Donquixote\Cellbrush\Table\Table' not found"
I saw in the code that is possible but looks not implemented....
I can do a PR, but, is this project active (or at least the PR will be analysed)?
composer/packagist#733
"Allow colspan and rowspan in README."
If you compare these two pages:
The one on packagist looks broken. Look for the 3rd table with "Full rowspan and colspan".
This is a pity, because the rowspan / colspan is kind of the selling point of cellbrush :)Could we allow those in packagist README display? I imagine this is just a html filter that is a bit more strict than necessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.