Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19635

The JavaScript API to interact with a Live Data instance is not accessible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Solved By
    • Affects Version/s: 13.10.5
    • Fix Version/s: 14.4-rc-1, 13.10.6
    • Component/s: Live Data
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The JavaScript API to interact with a Live Data instance is defined by Logic.js. This API is exposed in two ways:

      • liveData.js saves a reference in the data of the root element, using the 'livedata' key
      • calling Logic(element) (actually init) returns the API associated with the given element (if the live data widget was already created)

      In both cases you need to have access to the root element that is enhanced by the live data widget. The problem is that this element is replaced / detached so you can't access it anymore after the live data is created.. See XWIKI-19634 also.

      We need to:

      • either don't remove the root element (i.e. make it wrap the Vue.js component)
      • or expose the Logic API on the root of the Vue.js component

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              MichaelHamann Michael Hamann
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: