MCPcopy
hub / github.com/fastapi-admin/fastapi-admin / get_toolbar_actions

Method get_toolbar_actions

fastapi_admin/resources.py:88–98  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

86 filters: List[Union[str, Filter]] = []
87
88 async def get_toolbar_actions(self, request: Request) -> List[ToolbarAction]:
89 return [
90 ToolbarAction(
91 label=_("create"),
92 icon="fas fa-plus",
93 name="create",
94 method=Method.GET,
95 ajax=False,
96 class_="btn-dark",
97 )
98 ]
99
100 async def row_attributes(self, request: Request, obj: dict) -> dict:
101 return {}

Callers 1

get_model_resourceFunction · 0.45

Calls 2

_Function · 0.90
ToolbarActionClass · 0.85

Tested by

no test coverage detected