![]() |
Custom heading in HTML Table Class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Custom heading in HTML Table Class (/showthread.php?tid=91023) |
Custom heading in HTML Table Class - tassman - 06-05-2024 How to achieve something like this in pure html Code: <th scope="col" class="text-center">Options</th> As you see last line is different from first two lines. I know there is setHeading(), but dont know how to "custom" one heading with HTML Table Class. RE: Custom heading in HTML Table Class - kenjis - 06-05-2024 See https://github.com/codeigniter4/CodeIgniter4/blob/0ce62d9d6631c87bdebdc013084388793a6db3ee/tests/system/View/TableTest.php#L109 RE: Custom heading in HTML Table Class - tassman - 06-06-2024 (06-05-2024, 04:44 PM)kenjis Wrote: See https://github.com/codeigniter4/CodeIgniter4/blob/0ce62d9d6631c87bdebdc013084388793a6db3ee/tests/system/View/TableTest.php#L109 Now I got it. In documentation solution is the same as for addRow() - "set an individual cell’s tag attribute" here I think this explenation shoudl be writed for every setHeading(), setFooting(), addRow(). Thanks very much. |