TWebEditAutoComplete and Classes

Hello,

I'm using a TWebEditAutoComplete and set it some classes.

I understood that unlike TWebEdit, HTML created is a DIV then the INPUT
I understood too that property ClassName is the class of the INPUT (always the "hot" element in TMS it seems).

Now, I want to put some classes to the global Element, the DIV. I found properties "ActiveClassName" and "ItemClassName" in adds to the classic "ElementClassName".
So I tried this:

And the result in DevTools is:

Where are my classes "maClasse1" and "maClasse3" ?
How can I set a class in the main DIV, maybe is it an issue ?

Thank you
Serge

This isn't exposed as a property but you can access the main DIV element with
WebEditAutoComplete.ElementHandle.parentElement and use

TJSHTMLElement(WebEditAutoComplete.ElementHandle.parentElement).setAttribute('class','myclassname');

Thank you Bruno

Yes, I'm actually doing like that, by code instead of property in editor.

But what is it for properties "ActiveClassName" and "ItemClassName" ?

CSS for items in the dropdown and the active item among the items in the dropdown

Ohh, I should have guessed it, thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.