Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-4168

Renderer component decorator that has a parent component dependent protoTree needs to properly get its protoTree resolved.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4
    • Component/s: Renderer
    • Labels:
      None

      Description

      This is an example of the prototree that will destroy the structuredDate component decorator's protoTree:

      ".csc-collection-object-objectProductionDates": {
      "decorators": [
      {
      "func": "cspace.makeRepeatable",
      "type": "fluid",
      "options": {
      "elPath": "fields.objectProductionDates",
      "protoTree": {
      "expander": {
      "tree": {
      "expander": {
      "repeatID": "repeat:",
      "tree": {
      ".csc-object-production-date": {
      "value": "${{row}.dateText}",
      "decorators": [
      {
      "func": "cspace.structuredDate",
      "type": "fluid",
      "options": {
      "protoTree": {
      "dateText": "${{row}.objdateText}",
      "association": "${{row}.association}",
      "datePeriod": "${{row}.datePeriod}",
      "dateEarliestDate": "${{row}.dateEarliestDate}",
      "dateEarliestCertainty": "${{row}.dateEarliestCertainty}",
      "dateEarliestQualifier": "${{row}.dateEarliestQualifier}",
      "dateEarliestQualifierValue": "${{row}.dateEarliestQualifierValue}",
      "dateLatestDate": "${{row}.dateLatestDate}",
      "dateLatestCertainty": "${{row}.dateLatestCertainty}",
      "dateLatestQualifier": "${{row}.dateLatestQualifier}",
      "dateLatestQualifierValue": "${{row}.dateLatestQualifierValue}"
      }
      }
      }
      ]
      }
      },
      "type": "fluid.renderer.repeat",
      "pathAs": "row",
      "controlledBy": "fields.objectProductionDates"
      }
      },
      "type": "fluid.noexpand"
      }
      }
      }
      }
      ]
      }

        Attachments

          Activity

            People

            Assignee:
            yura Yura Zenevich
            Reporter:
            yura Yura Zenevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: