Changes between Version 4 and Version 5 of DeveloperGuidelines/EdenMobile/DataFormats


Ignore:
Timestamp:
08/30/19 08:19:26 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/EdenMobile/DataFormats

    v4 v5  
    5151
    5252NB In future, the field settings will fall back to values introspected from the web2py Field instance (requires/widget/represent), but this does not happen yet, so it is essential to configure the "mobile" section in the settings for EdenMobile to handle the field correctly. If no mobile settings are provided, EdenMobile will assume defaults, which may differ from what is configured for the field on the server!
     53
     54=== Widget-specific Configurations ===
     55
     56==== Likert-scale ====
     57
     58 - Field is type "string"
     59
     60Field 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
     72Field 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
    5388
    5489=== Form Description ===