I’m trying to add a logo in login form, and I don’t know how to append the image. I was trying to add a component, and there, at label to add html code of the image.
label: “”.
Or how can I append html in the form (like in jQuery form.append("))
Hi
You can use form container type and place there an image like in a sinple div. dhtmlx.com/docs/products/dht … _grid.html
In this sample grid is attached to container. You can attach your image by analogy
But how can I do this with dhtmlx code. For example logo.attachHTML() it’s not a method. How can I found what kind of methods dhtmlx supports for an element.
formData = [
{type: "container",name: "myContent",inputWidth: 380}
];
myForm = new dhtmlXForm("parentId", formData);
cont = myForm.getContainer("myContent");
cont.innerHTML = '<img src="../___img/box.jpg">';
This code will give you the next result:
>>But how can I do this with dhtmlx code. For example logo.attachHTML() it’s not a method. How can I found what kind of methods dhtmlx supports for an element.
Via getContainer() you get HTML div (container element) - that is why you can’t use dhtmlx methods for your object ‘logo’
>>How can I manipulate DOM via dhtmlx?
You can’t. You need to use DOM methods for DOM objects and DHTMLX methods for DHTML objects. You can just get DOM objects from DHTMLX like
cont = myForm.getContainer(“myContent”);