Skip to content

Commit

Permalink
add widget to set cursor in DC
Browse files Browse the repository at this point in the history
  • Loading branch information
nh758 committed Nov 26, 2024
1 parent 5799af2 commit e0dbdd8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions ABViewManagerCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var AllViews = [
require("../platform/views/ABViewCSVExporter"),
require("../platform/views/ABViewCSVImporter"),
require("../platform/views/ABViewDataFilter"),
require("../platform/views/ABViewDataSelect"),
require("../platform/views/ABViewDataview"),
require("../platform/views/ABViewDocxBuilder"),
require("../platform/views/ABViewGrid"),
Expand Down
47 changes: 47 additions & 0 deletions views/ABViewDataSelectCore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const ABViewWidget = require("../../platform/views/ABViewWidget");

const ABViewDataSelectPropertyComponentDefaults = {
dataviewID: null, // uuid of ABDatacollection
};

const ABViewDefaults = {
key: "data-select", // {string} unique key for this view
icon: "chevron-circle-down", // {string} fa-[icon] reference for this view
labelKey: "Data Select", // {string} the multilingual label key for the class label
};

module.exports = class ABViewDataSelectCore extends ABViewWidget {
constructor(values, application, parent, defaultValues) {
super(values, application, parent, defaultValues ?? ABViewDefaults);
}

static common() {
return ABViewDefaults;
}

static defaultValues() {
return ABViewDataSelectPropertyComponentDefaults;
}

///
/// Instance Methods
///

/**
* @method fromValues()
*
* initialze this object with the given set of values.
* @param {obj} values
*/
fromValues(values) {
super.fromValues(values);
}

/**
* @method componentList
* return the list of components available on this view to display in the editor.
*/
componentList() {
return [];
}
};

0 comments on commit e0dbdd8

Please sign in to comment.