🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

There are three widgets in this repository. One is “datastore” widget which let you retrieve json data and transform hierarchical data into an array. The second widget is “treeintable” widget that uses a datastore widget and embed a tree in one of table column. This widget supports Drag-and-Drop. The third widget is “Condition Editor” widget.

Drag_Drop Plugins

Documentation

JQuery Datastore, TreeInTable, Condition-Editor (SQL Query-Builder) Widgets

There are several widgets in this repository. The first widget is "datastore" which knows how to retrieve json data and let you manipulate data.

The second widget is "treeintable". It uses "datastore" widget and presents data in a table in which one of table column is a tree.

The third widget is "ConditionEditor". It lets user use a simple drag and drop to configure a boolean expression . It is ideal for creating data search criteria.

jquery.ise.datastore.js is a powerful widget. It internally converts a hierarchical data set into to an array and provides rich API set to manipulate data. By using this widget, application developers no longer has to write boilerplate code to handle raw data. I borrowed DOJO "data-store" concept and develop this jquery widget. Please check wiki article to see why hierarchical data can be converted and presented as an array.

jquery.ise.treeintable.js widget uses datastore as data-model. "treeintable" widget just takes advantage of datastore APIs and makes a user interface. Sample test_jquery_treeintable.html shows how to put two widgets together and techniques of overriding function in widget instance.

jquery.ise.conditioneditor widget extends from jquery.ise.treeintable.js. It makes manipulating a boolean expression very simple and easy. Say, you have searching criteria looks like "(priority == "5")||((souceIp == "1.2.2.3")&&(device == "router"))". ConditionEditor will organize it in a hierarchical tree like
▼||
  priority == "5"
  ▼&&
    souceIp == "1.2.2.3"
    device == "router"

Then, you can drag and drop to re-arrange tree-nodes to make the tree look like


▼||
  souceIp == "1.2.2.3"
  ▼&&
    device == "router"
    priority == "5"




It also supports function expression such as "matches(DepartName, "Finance") && (Bonus > 10000)", where "matches" is a built-in function.
This widget is meta-data driven. You have total control of what fields and build-in functions are accessible, what operators and values are available based on user-role and service context. For example, my company is servicing client-A. I let client-A user to search data using the condition-editor widget. Based on service package, I only allow client-A to access fields [f1, f2.. fn] and use built-in functions [fn1, fn2, ..,fn10]. While configuring search criteria, if user selects "f2" field, I can load the proper operators and built-in functions to the operator combo-box. Once user selects an operator, I can further control what values to load to the value combo box. Data-validation API will enforce data integrity and rules compliance. Please see the demo for details.

This is an ideal query-builder tool for company to offer data search and data analysis services.

See Condition Editor demo here

All of these these widgets are based on jquery.ui.Factory. It means they are written in Object-Oriented fashion and 100% extendible.

Demo Program Link


You May Also Like