-
Notifications
You must be signed in to change notification settings - Fork 90
/
terminal-input.js
39 lines (35 loc) · 1 KB
/
terminal-input.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @module terminal-input
*/
YUI.add("terminal-input", function(Y){
/**
* Class that extends Terminal to differenciate Input/Output terminals
* @class TerminalInput
* @extends Terminal
* @constructor
* @param {HTMLElement} parentEl Parent dom element
* @param {Object} options configuration object
* @param {Container} container (Optional) Container containing this terminal
*/
Y.TerminalInput = function(parentEl, options, container) {
Y.TerminalInput.superclass.constructor.call(this,parentEl, options, container);
};
Y.extend(Y.TerminalInput, Y.Terminal, {
/**
* @attribute nMaxWires
* @description maximum number of wires for this terminal
* @type Integer
* @default 1
*/
nMaxWires: 1,
/**
* @attribute ddConfig
* @description configuration of the Y.TerminalProxy object
* @type Object
* @default { type: "input", allowedTypes: ["output"] }
*/
ddConfig: { type: "input", allowedTypes: ["output"] }
});
}, '3.6.0',{
requires: ['terminal']
});