「Phpgrid語法」:修訂間差異

出自TSK WIKI
跳至導覽 跳至搜尋
Root​(留言 | 貢獻)
新頁面: $sg1 -> set_col_property("TA003", array("formatter"=>"string", "sorttype"=>"date"))->enable_advanced_search(true);
 
Root​(留言 | 貢獻)
無編輯摘要
第1行: 第1行:
$sg1 -> set_col_property("TA003",
<php>
$sg1 -> set_col_property("TA003",
                         array("formatter"=>"string",
                         array("formatter"=>"string",
                             "sorttype"=>"date"))->enable_advanced_search(true);
                             "sorttype"=>"date"))->enable_advanced_search(true);
</php>
==變更Column Color==
<php>
<?php
...
$dg->set_col_property('orderNumber', array('classes'=>'comppk'));
$dg->set_col_property('productCode', array('classes'=>'comppk'));
...
?>
<style>
    .comppk{background-color: greenyellow !important;}
</style>
</php>

於 2015年10月17日 (六) 17:04 的修訂

<php> $sg1 -> set_col_property("TA003",

                       array("formatter"=>"string",
                           "sorttype"=>"date"))->enable_advanced_search(true);

</php>

變更Column Color

<php> <?php ... $dg->set_col_property('orderNumber', array('classes'=>'comppk')); $dg->set_col_property('productCode', array('classes'=>'comppk')); ... ?> <style>

   .comppk{background-color: greenyellow !important;}

</style> </php>