Update README.md

This commit is contained in:
scarlett kadan 2024-02-03 17:37:49 +00:00
parent f2ca5f3c86
commit 80cfedc2da

View File

@ -183,11 +183,13 @@ All objects sent between the frontend and backend will follow this format.
{ {
setting_name: "text field" setting_name: "text field"
type: "text" type: "text"
advanced: True
current_value: "current value of seting" current_value: "current value of seting"
}, },
{ {
setting_name: "radio button" setting_name: "radio button"
type: "radio" type: "radio"
advanced: True
current_value: "option 1" current_value: "option 1"
radio_values: [ radio_values: [
"option 1", "option 1",
@ -198,6 +200,7 @@ All objects sent between the frontend and backend will follow this format.
{ {
setting_name: "check box" setting_name: "check box"
type: "check" type: "check"
advanced: True
current_value: ["option 1", "option 2"] current_value: ["option 1", "option 2"]
radio_values: [ radio_values: [
"option 1", "option 1",
@ -208,14 +211,21 @@ All objects sent between the frontend and backend will follow this format.
{ {
setting_name: "enabled or disabled" setting_name: "enabled or disabled"
type: "boolean" type: "boolean"
advanced: True
current_value: True current_value: True
}, },
{ {
setting_name: "slider bar" setting_name: "slider bar"
type: "slider" type: "slider"
advanced: True
current_value: 50.0 #Float current_value: 50.0 #Float
min: -100.0 #Float min: -100.0 #Float
max: 100.0 #Float max: 100.0 #Float
},
{
setting_name: "button"
advanced: True
type: "button"
} }
] ]
} }
@ -262,6 +272,11 @@ All objects sent between the frontend and backend will follow this format.
setting_name: "slider bar" setting_name: "slider bar"
type: "slider" type: "slider"
new_value: 100.0 #Float new_value: 100.0 #Float
},
{
setting_name: "button"
type: "button"
new_value: True
} }
] ]
} }