Code Monkey home page Code Monkey logo

cellbrush's People

Contributors

donquixote avatar mcaskill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cellbrush's Issues

`createTag()` of `AttributesTrait` accesses a `private` attribute without a getter

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?]

Got an error when trying to use test file

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

Me too error

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)

Generating a dynamic table from a data set

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?

  • Adjacency List
  • Materialized Path
  • Nested Sets
  • Closure Table
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().

Error after last update

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

How can I add table attributes?

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)?

rowspan / colspan in README broken on packagist

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.