zoukankan      html  css  js  c++  java
  • 给列表单元格加背景色

    <t:dgCol title="任务类型"  field="type" align="center" extendParams="'styler':fmtype;" query="true" queryMode="single"  width="100"></t:dgCol>

    extendParams属性添加js方法,然后再调用方法

    function fmtype(val,row,index){
       var s1 = 'background-color: #f89406;;border-radius: 5px;color:#fff;';
       var s2 = 'background-color: #3a87ad;border-radius: 5px;color:#fff';
        if (val =='W') {
           return s1
       }
        if (val =='J') {
           return s2
        }
    }
  • 相关阅读:
    Linux Netcat命令
    clang-format
    keytool
    ip
    Linux iptables
    Linux yum源完全配置
    Makefile
    CMake
    HSTS
    开源镜像
  • 原文地址:https://www.cnblogs.com/shuilangyizu/p/7844554.html
Copyright © 2011-2022 走看看