Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement station value renderer for 3 situations: "at", "from" and "to" #146

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

grigasp
Copy link
Member

@grigasp grigasp commented Oct 16, 2023

Example rule to use the renderer:

{
  "ruleType": "ContentModifier",
  "class": {
    "schemaName": "CivilPhysical",
    "className": "Course"
  },
  "calculatedProperties": [{
    "label": "Station Value (at)",
    "renderer": {
      "rendererName": "AtStation"
    },
    "value": "this.ECInstanceId"
  }, {
    "label": "Station Value (from)",
    "renderer": {
      "rendererName": "FromStation"
    },
    "value": "this.ECInstanceId"
  }, {
    "label": "Station Value (to)",
    "renderer": {
      "rendererName": "ToStation"
    },
    "value": "this.ECInstanceId"
  }]
}

@grigasp grigasp requested a review from a team as a code owner October 16, 2023 08:28
@grigasp grigasp merged commit ecc5e71 into master Oct 16, 2023
1 check passed
@grigasp grigasp deleted the experimental/station-value-renderer-3-cases branch October 16, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants