How can I use a CSS selector to find a custom button in Orbeon 2016.1?

时间:2016-07-11 23:29:31

标签: orbeon

Using Orbeon 4.10 if I defined a button like this:

<property 
    as="xs:string" 
    name="oxf.fr.resource.*.*.en.buttons.send-to-service" 
    value="Send"/>

the button would then be surrounded by a span with this CSS class: fr-send-to-service-button.

I am using the Orbeon Proxy Portlet in conjunction with custom portlets that wrap the Orbeon functionality. Previously it was very easy to hide the button with CSS and simulate clicking on it with JavaScript. But now there is no CSS class that I can use to find the button.

Was this CSS class intentionally removed in Orbeon 2016.1? Is there a way I can specify CSS for the button? Or is there some other way I can identify the button?

I need to be able to:

  1. Hide it with CSS
  2. Simulate clicking on it, for example, $('.fr-send-to-service-button').click()

1 个答案:

答案 0 :(得分:2)

这不是故意的,已经针对2016.2(issue #2739)进行了修复。不幸的是,在2016.1.0中,没有CSS类。