Removing a dropdown in conref

mu258770
Posts: 105

Removing a dropdown in conref

Wed Jun 08, 2016 12:33 pm

Hi team,

I have created a dropdown for an element <hazardstatement>.My requirement is to remove the dropdown when conref is added for <hazardstatement> in CSS. I tried many changes but the issue is not solved.My current version is oXygen 17.0 . Please help me in solving this issue.

Thanks,
Shabeer
mihaela
Posts: 171

Re: Removing a dropdown in conref

Wed Jun 08, 2016 2:32 pm

Hi Shabeer,

Can you please give us more details about your requirements?
When you say that you have created a dropdown in an hazardstatement element you mean that you have added a form-control in the CSS?

Best Regards,
Mihaela
Mihaela Calotescu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mu258770
Posts: 105

Re: Removing a dropdown in conref

Wed Jun 08, 2016 3:58 pm

Hi Team,

For hazardstatement dropdown we have used oXygen built in CSS function oxy_combobox.

Code:
oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");

Regards,
Shabeer
mihaela
Posts: 171

Re: Removing a dropdown in conref

Wed Jun 08, 2016 5:53 pm

Hi Shabeer,

Here is the way you can set the combobox in a hazardstatement element, only when it does not have the conref set:

Code: Select all

*[class~="hazard-d/hazardstatement"]:not(*[conref]) {
    content: oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");
}


Best regards,
Mihaela
Mihaela Calotescu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests