Welcome Guest, Not a member yet? Register   Sign In
Table Library: Need Help for proper solution => How to add CSS for each column
#1

[eluser]huzzel[/eluser]
Hi,

i need to set a column to 100% so i changed the core library.

Code:
foreach($this->heading as $heading)
            {
                $out .= $this->template['heading_cell_start'];
                $out .= $heading;
                $out .= $this->template['heading_cell_end'];
            }

Code:
foreach($this->heading as $key => $heading)
            {
                $out .= '<th id="th_' . $key . '">';
                $out .= $heading;
                $out .= $this->template['heading_cell_end'];
            }

How can i use this modification without changeing the corelibrary ?
#2

[eluser]huzzel[/eluser]
**push**

no solution available ?
#3

[eluser]Jamie Rumbelow[/eluser]
Hi huzzel,

It's easy to change core library methods; just create a file called MY_Table.php in your application/libraries folder. You can then create your own MY_Table class and overwrite any methods you like. Find more information in the User Guide (scroll down to the "Replacing Native Libraries with Your Versions" section.)

Hope this helps,

Jamie
#4

[eluser]huzzel[/eluser]
Thanks for your reply. i thought i can do this without replacing the full function.




Theme © iAndrew 2016 - Forum software by © MyBB