Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
14.10.6
-
None
-
Unknown
-
Description
My need is the following: I want a specific action link provided on a LiveData to be handled by a piece of javascript, which would use some data from the same row of the LiveData.
Ideally I'd like to be able to define a dedicated data-attribute element that I could reuse when listening on the click event on my link, so to be able to define my action like this:
{
"id": "editapprovers",
"allowProperty": "doc.haseditapprovers",
"urlProperty": "doc.editapprovers_url",
"icon": "wrench",
"name": "$services.localization.render('changerequest.sheet.editapprovers.button')",
"custom-data-location":"doc.location",
}
which would create in the dom:
<a href="mylink" class="action action_editapprovers" data-location="the doc.location"><img src="/xwiki/resources/icons/silk/wrench.png"><span class="action-name">Edit approvers</span></a>
Attachments
Issue Links
- is related to
-
XWIKI-18724 Live Data Action descriptors does not allow to define javascript callbacks
-
- Open
-