EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: wymak on July 25, 2018, 09:50:48 AM



Title: enter
Post by: wymak on July 25, 2018, 09:50:48 AM
I return the data inside a datagrid with PHP. I want to show 2 lines in a footer cell, with:

....
....
   $foot1['cost'] = "BUY Total <br> SELL Total";
   $footer[] = $foot1;
....
....
   
the cell only display 'BUY Total', the 2nd line does not display;
any solution??

rgds,
Mak


Title: Re: enter
Post by: jarry on July 25, 2018, 06:26:48 PM
Please open your browser's debug tool and switch to Network panel, check the data returned from your server.


Title: Re: enter
Post by: wymak on July 25, 2018, 10:30:54 PM
The output is as follow, as expected:

<div style="text-align:right;" class="datagrid-cell datagrid-cell-c2-cost">
"BUY Total "
<br>
" SELL Total"
</div>

However, the "SELL Total" line cannot be displayed in the datagrid cell box.
BTW, if I remove the '<br>' in the PHP source, it will display "BUY Total SELL Total" in one line.

Any enlightenment?
Thx,
Mak


Title: Re: enter
Post by: jarry on July 26, 2018, 02:40:31 AM
Please look at this example http://code.reloado.com/acelaf3/edit#preview