-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: View HTML Table class displays tag attributes as columns #8361
Labels
wontfix
Current code behavior being reported or fixed is intentional and won't be changed
Comments
eSkiSo
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Dec 22, 2023
Related #8054 |
I have confirmed this behavior. |
This seems difficult (impossible?) to fix. So I don't fix. |
2 tasks
kenjis
removed
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Dec 23, 2023
This is not a bug. Because you pass three elements to $table->addRow('Blue', 'Red', 'Green');
$table->addRow(['Blue', 'Red', 'Green']); If you need to pass one element, use array of array. $table = new \CodeIgniter\View\Table();
$table->addRow([['data' => 'Blue', 'class' => 'highlight', 'colspan' => 2]]);
return $table->generate(); |
kenjis
added
the
wontfix
Current code behavior being reported or fixed is intentional and won't be changed
label
Dec 23, 2023
Fair enough. Close it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Version
8.2
CodeIgniter4 Version
4.4.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySQL 8
What happened?
When using the addRow using 'data'with cell tag attributes (class, colspan, etc), the cell tags attributes will be displayed as columns
Steps to Reproduce
Expected Output
Expected:
What it outputs:
Anything else?
Please notice that if you add another 'column' on the same addRow it will output correctly:
Outputs:
The text was updated successfully, but these errors were encountered: