Appframe Knowledge Base


1 hits
0

How to make a custom af.controls.Form editor type

(function (scope) {
    "use strict";
    var af = scope.af;

	function CustomEditor(pForm, pData) {
		this.inputSelector = "a"; // Uses valHooks to interface with afComboBox
		this.getInput = function() {
			var that = this;
			if (!that.listBox) {
				that.listBox = new af.controls.ComboBox({
					input: CustomEditor.prototype.getInput.call(this),
					dropdown: CustomDropdown
				});
			}
			return CustomEditor.prototype.getInput.call(this);
		};
		af.controls.Form.InputBase.apply(this, arguments);
	}
	CustomEditor.prototype = new af.controls.Form.InputBase();

}(this));

web · Perma link post comment Posted by: Jan Henrik H. Meling (05-okt-2012)