The official documentation for ShuffleboardComponent
states that the property names in withProperties(Map<String, Object>)
are whitespace-insensitive:
Property names are case- and whitespace-insensitive (capitalization and spaces do not matter).
However, when I tried to set a component’s properties with all whitespace removed, it does not work. For example, this works:
Shuffleboard.getTab("TestTab").add("A Boolean", true)
.withWidget(BuiltInWidgets.kBooleanBox)
.withProperties(Map.of("color when true", "blue"));
but this doesn’t:
Shuffleboard.getTab("TestTab").add("A Boolean", true)
.withWidget(BuiltInWidgets.kBooleanBox)
.withProperties(Map.of("colorwhentrue", "blue"));
Am I misunderstanding what being “whitespace-insensitive” means, or is this a mistake in the documentation?