MCPcopy Index your code
hub / github.com/fastapi-admin/fastapi-admin / Action

Class Action

fastapi_admin/resources.py:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63class Action(BaseModel):
64 icon: str
65 label: str
66 name: str
67 method: Method = Method.POST
68 ajax: bool = True
69
70 @validator("ajax")
71 def ajax_validate(cls, v: bool, values: dict, **kwargs):
72 if not v and values["method"] != Method.GET:
73 raise ValueError("ajax is False only available when method is Method.GET")
74
75
76class ToolbarAction(Action):

Callers 3

get_actionsMethod · 0.90
get_actionsMethod · 0.70
get_bulk_actionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected