feat: option to hide a column in frontend when defining a Table Input, hides Tool identifier from table display (#6222)
* added changes to hide fields from table input * [autofix.ci] apply automated fixes --------- Co-authored-by: anovazzi1 <otavio2204@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
e1e9d7baef
commit
d1402b888f
5 changed files with 65 additions and 52 deletions
|
|
@ -12,6 +12,7 @@ TOOL_TABLE_SCHEMA = [
|
|||
"sortable": False,
|
||||
"filterable": False,
|
||||
"edit_mode": EditMode.INLINE,
|
||||
"hidden": False,
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
|
|
@ -21,6 +22,7 @@ TOOL_TABLE_SCHEMA = [
|
|||
"sortable": False,
|
||||
"filterable": False,
|
||||
"edit_mode": EditMode.POPOVER,
|
||||
"hidden": False,
|
||||
},
|
||||
{
|
||||
"name": "tags",
|
||||
|
|
@ -31,6 +33,7 @@ TOOL_TABLE_SCHEMA = [
|
|||
"sortable": False,
|
||||
"filterable": False,
|
||||
"edit_mode": EditMode.INLINE,
|
||||
"hidden": True,
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class Column(BaseModel):
|
|||
default: str | None = None
|
||||
disable_edit: bool = Field(default=False)
|
||||
edit_mode: EditMode | None = Field(default=EditMode.MODAL)
|
||||
hidden: bool = Field(default=False)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def set_display_name(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue