You cannot add attributes to HTML tags just by adding Properties to Zen Components. It is a bit
more complicated than that.
There are really two options for this:
1. Use Javascript to add the attribute after the page has already been rendered. Something like
document.getElementById('myControlId').setAttribute("data-nusa-concept-name","procedure")
Of course, any other way of getting access to the DOM element would be fine (besides document.getElementById()
2. Override the %DrawHTML() method in your Zen Control, to output the attribute. You can go into
%Zen.Component.text, copy the %DrawHTML method, and override it in your subclass. If the base class
looks like this:
Method %DrawHTML()
{
//...
&html<<input type="text" class="#(..controlClass)#" ...>
}
You could override it with:
Method %DrawHTML()
{
//...
&html<<input type="text" class="#(..controlClass)#" data-nusa-concept-name="procedure"
...>