The radio input field lets the user pick one input from a fixed set of alternatives.
Image Removed Image Added Expand |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| def formFieldSet = api.createConfiguratorEntry()
formFieldSet.inputs = [
api.inputBuilderFactory()
.createRadioEntry('radio').setOptions('A'..'E')
.buildContextParameter()
]
return formFieldSet |
|
Expand |
---|
title | In input generation mode (input generation mode) |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| api.inputBuilderFactory()
.createRadioEntry('radio').setOptions('A'..'E')
.getInput() |
|
Expand |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
linenumbers | false |
---|
| processor.addOrUpdateInput( //❶
'ROOT',
api.inputBuilderFactory()
.createRadioEntry('radio').setOptions('A'..'E')
.buildMap()
) |
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Expand |
---|
|
Code Block |
---|
language | groovy |
---|
theme | Midnight |
---|
title | Reading input value in a line-item logic. |
---|
linenumbers | false |
---|
| def value = input.radio as String |
|