elAttr(img, 'src', attachment.tinyURL);
elAttr(img, 'alt', '');
icon.parentNode.replaceChild(icon, img);
-
+
elData(listItem, 'height', attachment.height);
elData(listItem, 'width', attachment.width);
}
label.textContent = itemData.label;
item.appendChild(label);
itemList.appendChild(item);
-
+
elData(item, 'type', typeName);
item.addEventListener('click', _callbackItem);
element.readOnly = true;
var isDateTime = (elAttr(element, 'type') === 'datetime');
-
+
elData(element, 'is-date-time', isDateTime);
// convert value
setDate: function(element, date) {
element = this._getElement(element);
var data = _data.get(element);
-
+
elData(element, 'value', date.getTime());
element.value = DateUtil['formatDate' + (data.isDateTime ? 'Time' : '')](date);
if (!name) {
name = DomUtil.identify(container);
}
-
+
elData(container, 'name', name);
this._containers.set(name, container);
}