RedQueryBuilder验证

时间:2013-09-10 11:02:57

标签: javascript html css validation redquerybuilder

我使用的是RedQueryBuilder版本0.5.0 http://0-5-0.redquerybuilder.appspot.com/用于构建Expression验证程序。 我想知道,如何验证输入的表达式? RedQuery Builder 0.5.0的元数据支持Jquery支持的css和类添加。 请建议如何将css元数据添加到现有元数据中。

示例元数据如下:

 meta : {
    tables : [ {
        "name" : "PERSON",
        "label" : "Person",
        "columns" : [ {
            "name" : "NAME",
            "label" : "Name",
            "type" : "STRING",
            "size" : 10
        }, {
            "name" : "DOB",
            "label" : "Date of birth",
            "type" : "DATE"
        }, {
            "name" : "SEX",
            "label" : "Sex",
            "type" : "STRING",
            "editor" : "SELECT"
        }, {
            "name" : "CATEGORY",
            "label" : "Category",
            "type" : "REF",
        }  ],
        fks : []
    } ],

    types : [ {
        "name" : "STRING",
        "editor" : "TEXT",
        "operators" : [ {
            "name" : "=",
            "label" : "is",
            "cardinality" : "ONE"
        }, {
            "name" : "<>",
            "label" : "is not",
            "cardinality" : "ONE"
        }, {
            "name" : "LIKE",
            "label" : "like",
            "cardinality" : "ONE"
        }, {
            "name" : "<",
            "label" : "less than",
            "cardinality" : "ONE"
        }, {
            "name" : ">",
            "label" : "greater than",
            "cardinality" : "ONE"
        } ]
    }, {
        "name" : "DATE",
        "editor" : "DATE",
        "operators" : [ {
            "name" : "=",
            "label" : "is",
            "cardinality" : "ONE"
        }, {
            "name" : "<>",
            "label" : "is not",
            "cardinality" : "ONE"
        }, {
            "name" : "<",
            "label" : "before",
            "cardinality" : "ONE"
        }, {
            "name" : ">",
            "label" : "after",
            "cardinality" : "ONE"
        } ]
    }, {
        "name" : "REF",
        "editor" : "SELECT",
        "operators" : [ {
            "name" : "IN",
            "label" : "any of",
            "cardinality" : "MULTI"
        }]
    }  ]
},

0 个答案:

没有答案