John Lindal![]()
QueryBuilder allows only a simple set of criteria combined by either AND or OR. Expression Builder extends this to allow any boolean expression, no matter how complex.
Creates a textarea with the specified name and id and registers a validation function for this textarea with the given FormManager instance. Uses the QueryBuilder instance to provide a convenient way to insert a clause into the textarea.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2013.01.16-21-05'
}).use('gallery-exprbuilder', function(Y) {
var form = new Y.FormManager('expr_form');
form.prepareForm();
var expr = new Y.ExpressionBuilder({
fieldName: 'sql_expr',
fieldId: 'sql-expr',
formMgr: form,
queryBuilder: new Y.QueryBuilder(...)
});
expr.render(...);
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info