I would like the ability to have a help icon optionally next to multiselect options, in which case when a user hovers over the help icon, they see help text.
As I was thinking through this, my plan was to create a new field within a oneOf called ‘help’ in which I could include as part of the field definition. For example:
"exampleMultiSelect": {
"title": "Example Multi-Select",
"type": "array",
"uniqueItems": true,
"items": {
"oneOf": [{
"title": "Option 1",
"const": "OPTION_1"
}, {
"title": "Option 2",
"const": "OPTION_2",
"help": "Additional details related to Option 2"
}, {
"title": "Option 3",
"const": "OPTION_3"
}, {
"title": "Option 4",
"const": "OPTION_4",
"help": "Additional details related to Option 4"
}, {
"title": "Option 5",
"const": "OPTION_5"
}
]
}
}
In terms of pulling this off, my goal was to copy the existing control used to generate the multiselect options, and then make the modification. I am struggling to figure out which controls I would need to first copy, and then modify. Can anyone point me in the right direction?