mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 07:25:49 +00:00
feat: add button properties including label, icon, color, and theme to swagger definition
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -8516,6 +8516,39 @@
|
|||||||
"formula": {
|
"formula": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Formula to execute"
|
"description": "Formula to execute"
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Label of the button"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Icon of the button"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"brand",
|
||||||
|
"red",
|
||||||
|
"green",
|
||||||
|
"maroon",
|
||||||
|
"blue",
|
||||||
|
"orange",
|
||||||
|
"pink",
|
||||||
|
"purple",
|
||||||
|
"yellow",
|
||||||
|
"gray"
|
||||||
|
],
|
||||||
|
"description": "Color of the button"
|
||||||
|
},
|
||||||
|
"theme": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"solid",
|
||||||
|
"light",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"description": "Theme of the button"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@@ -8538,6 +8571,39 @@
|
|||||||
"button_hook_id": {
|
"button_hook_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "ID of the webhook to trigger"
|
"description": "ID of the webhook to trigger"
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Label of the button"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Icon of the button"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"brand",
|
||||||
|
"red",
|
||||||
|
"green",
|
||||||
|
"maroon",
|
||||||
|
"blue",
|
||||||
|
"orange",
|
||||||
|
"pink",
|
||||||
|
"purple",
|
||||||
|
"yellow",
|
||||||
|
"gray"
|
||||||
|
],
|
||||||
|
"description": "Color of the button"
|
||||||
|
},
|
||||||
|
"theme": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"solid",
|
||||||
|
"light",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"description": "Theme of the button"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@@ -8567,6 +8633,11 @@
|
|||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"solid",
|
||||||
|
"light",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
"description": "Theme of the button"
|
"description": "Theme of the button"
|
||||||
},
|
},
|
||||||
"output_column_ids": {
|
"output_column_ids": {
|
||||||
@@ -8583,6 +8654,18 @@
|
|||||||
},
|
},
|
||||||
"color": {
|
"color": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"brand",
|
||||||
|
"red",
|
||||||
|
"green",
|
||||||
|
"maroon",
|
||||||
|
"blue",
|
||||||
|
"orange",
|
||||||
|
"pink",
|
||||||
|
"purple",
|
||||||
|
"yellow",
|
||||||
|
"gray"
|
||||||
|
],
|
||||||
"description": "Color of the button"
|
"description": "Color of the button"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -8607,6 +8690,39 @@
|
|||||||
"script_id": {
|
"script_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "ID of the script to trigger"
|
"description": "ID of the script to trigger"
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Label of the button"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Icon of the button"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"brand",
|
||||||
|
"red",
|
||||||
|
"green",
|
||||||
|
"maroon",
|
||||||
|
"blue",
|
||||||
|
"orange",
|
||||||
|
"pink",
|
||||||
|
"purple",
|
||||||
|
"yellow",
|
||||||
|
"gray"
|
||||||
|
],
|
||||||
|
"description": "Color of the button"
|
||||||
|
},
|
||||||
|
"theme": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"solid",
|
||||||
|
"light",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"description": "Theme of the button"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|||||||
Reference in New Issue
Block a user