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

Allow to define a provider of values for a macro parameter

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 16.10.5
    • Rendering - XWiki
    • None
    • Unknown

    Description

      The idea is that defining an Enum type for a macro parameter is often not enough: we might need to be able to get dynamically the returned values to display for a wiki macro parameter. And we might also to allow custom values on top of predefined values.
      Right now the only way to deal with those scenario is to define a custom displayer which is tedious. It would be easier to be able to define a component role and to be able to specify the hint of the component implementation for getting the values.

      Example of needs for such usecases are the JIRA charts macro where we want to allow set of predefined and custom jira fields, and async macro context elements.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: