MUSCLE Developer Manual Logo

Getting Started

  • Getting Started

Server

  • Application
  • Docker
  • Native Installation
  • Configuration Parameters
  • Testing Server

Devices

  • Getting Started
  • Implementing Devices
    • device.json
      • Options
      • Dashboard
      • Recording
      • Example
    • RPC API
    • File Up and Download
    • Hardware Communication
  • Configuration Parameters
  • Server Setup

Requirements

  • Requirements
  • uWSGI
MUSCLE Developer Manual
  • »
  • Implementing Devices »
  • Drop-Down
  • Repositories

Drop-Down¶

A Drop-Down list of values of which one can be selected.

Tag¶

"type": "select"

Values¶

The drop-down type supports the following values:

options¶

An array of options of which the user can choose one from.

Argument Passed to the Device¶

This section describes the value (VALUE_FROM_THE_USER) which will get passed to the device. Read the Parameters section of the device.execute method for the general structure of the argument.

The value will be the name of the option which is selected.

Example¶

This example shows how this type of option will look in the webapp.

Option configuration¶

{
    "name": "Select the size of your cup",
    "type": "select",
    "id": "select-1",
    "values": {
        "options": ["Small", "Medium", "Large"]
    }
}

Result¶

select example

passed value:

{
    "id": "select-1",
    "value": "Small"
}

© Copyright 2023 MUSCLE @ BFH.

Built with Sphinx using a theme provided by Read the Docs.
MUSCLE v: 0.1.1
Versions
0.1.1
latest