summaryrefslogtreecommitdiffstats
path: root/web/widget/link.js
blob: f2094a87f6d6b3e30f9b2438aacb8ddbc90a8279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2012-2014 Kaarle Ritvanen
 * See LICENSE file for license details
 */

define(
    ["aconf/dom", "aconf/widget/abstract/base", "jquery"],
    function(dom, Base, $) {
	return Base.extend({
	    staticRender: function(value, meta) {
		return $("<td>").html(dom.objectRef(value));
	    },

	    createEl: dom.href,

	    render: function(value, meta) { dom.objectRef(value, this.el) },

	    wrap: function() { return $("<td>").html(this.el); },
		    
	    get: function() { return {}; }
	});
    }
);