-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 []; | ||
} | ||
}; |