Skip to content

Allow contains (in array) rule condition in svg

Description

Allow users to create rule condition with new operator "contains" which allows to show/hide svg element if a value is present in the array

For eg. rule1: { type=layer model=sys/tg_test/1/short_spectrum_ro layer=layer2 condition=contains(24,value)

Here layer2 element will be shown only when "sys/tg_test/1/short_spectrum_ro" value contains "22" in its array.

Motivation

Background on use case, changes needed

Fixes: #131

  • Items added

Changes:

  • changes made

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install?
  • Toggle added for new features?

Closes #131

Merge request reports

Loading