| 53 | |
| 54 | === Widget-specific Configurations === |
| 55 | |
| 56 | ==== Likert-scale ==== |
| 57 | |
| 58 | - Field is type "string" |
| 59 | |
| 60 | Field settings to use pre-defined scales: |
| 61 | {{{ |
| 62 | "mobile": { |
| 63 | "widget": { |
| 64 | "type": "likert", |
| 65 | "scale": "appropriateness"|"confidence"|"frequency"|"safety"|"satisfaction"|"smiley-5"|"smiley-3" |
| 66 | } |
| 67 | } |
| 68 | }}} |
| 69 | |
| 70 | - predefined scale sets field options and option<=>icon mapping |
| 71 | |
| 72 | Field settings to use custom scale: |
| 73 | {{{ |
| 74 | "mobile": { |
| 75 | "widget": { |
| 76 | "type": "likert", |
| 77 | "icons": { |
| 78 | "option": "icon-css-class", ... |
| 79 | }, |
| 80 | "iconsOnly": true|false |
| 81 | } |
| 82 | } |
| 83 | }}} |
| 84 | |
| 85 | - with custom scale, the field must have options defined |
| 86 | - scales without icons-only are rendered as standard vertical radio list (single-select) |
| 87 | - scales with icons-only are rendered as horizontal radio bar with icons |