Added a lot of functionality; Fixed a large number of bugs; Removed Bootstrap from the mix and replaced it with SimpleGrid and some choice bits from the bootstrap system; Pricing, Sales, and Product management all now function at basic levels.

This commit is contained in:
Wynne Crisman
2017-01-17 22:31:43 -08:00
parent b757595cd6
commit 55337521f6
49 changed files with 16017 additions and 1547 deletions

View File

@@ -130,10 +130,11 @@
// data: The item or array of items to add. This will be the root tree elements if groupFunctions is provided.
function add(data) {
let groupFunctions = _this.options.groupFunctions;
let getClasses = _this.options.getClasses;
let addOne = function(data, parent) { //role is optional.
let text = $.isFunction(_this.options.textAttr) ? _this.options.textAttr(data) : data[_this.options.textAttr];
let li = $("<li" + (parent ? " role='leaf'" : "") + ">" + text + "</li>");
let li = $("<li" + (parent ? " role='leaf'" : "") + (getClasses ? " class='" + getClasses(data) + "'" : "") + ">" + text + "</li>");
li.appendTo(_this.$list);
li.data('model', data);
@@ -214,7 +215,8 @@
effects: 'fade',
duration: '200',
listClass: 'de.combo-list',
selectionClass: 'selected' //The class to use for the selected element in the dropdown list.
selectionClass: 'selected', //The class to use for the selected element in the dropdown list.
getClasses: undefined //An optional function that will return a string to use in the list item's class attribute to style the list item for a given model data. The function will be passed the data object for the list item.
};
Combo.prototype.select = function($li) {