EasyUI Forum
May 14, 2024, 07:01:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: enter  (Read 4560 times)
wymak
Newbie
*
Posts: 26


View Profile
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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.
Logged
wymak
Newbie
*
Posts: 26


View Profile
« Reply #2 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: July 26, 2018, 02:40:31 AM »

Please look at this example http://code.reloado.com/acelaf3/edit#preview
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!