15 lines
438 B
JavaScript
15 lines
438 B
JavaScript
/**
|
|
* Class to hold information about the node attached to an input element.
|
|
* Used to control behavior based on node information.
|
|
*/
|
|
export class NodeInfo {
|
|
/**
|
|
* @param {string} nodeType - The type/class name of the node
|
|
* @param {string} inputName - The name of the input widget
|
|
*/
|
|
constructor(nodeType, inputName) {
|
|
this.nodeType = nodeType;
|
|
this.inputName = inputName;
|
|
}
|
|
}
|