NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Adaptive card #175

Closed siyaod closed 2 years ago

siyaod commented 2 years ago

Changes: Add a new type of card "input card", which extends the capacity of Adaptive Card to have checkbox, radio button, dropdown list and text input.

  1. ID: in order to keep the ID unique, all the element ID is built with ${ID}${type}${index}.

For example '4a_checkbox_2' means the 2nd checkbox with ID '4a'. In this case, '4a' can refer to a sub-flow, '4a_checkbox_2' is the second checkbox in this sub-flow.

  1. Title: a text paragraph before the Checkbox/radio button/dropdown list/text input.
  2. Checkbox, radio button, dropdown list have 3 properties:
    • title: label displayed before the choice set
    • type: can be checkbox, radio button, or dropdown list
    • dataset: the choice set, of type JSON. For example: [ {"title":"Country A","value":"1"}, {"title":"Country B","value":"2"}, {"title":"Country C","value":"3"} ]
  3. Text input has only 1 property:
    • title: label displayed before the text input.
  4. Action has 3 property:
    • title: text displayed on the button
    • type: of type Action.Submit always
    • data: metadata to send by clicking this button

Here is the configuration window looks like image