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

Method get_options

fastapi_admin/widgets/inputs.py:77–84  ·  view source on GitHub ↗

return list of tuple with display and value [("on",1),("off",2)] :return: list of tuple with display and value

(self)

Source from the content-addressed store, hash-verified

75
76 @abc.abstractmethod
77 async def get_options(self):
78 """
79 return list of tuple with display and value
80
81 [("on",1),("off",2)]
82
83 :return: list of tuple with display and value
84 """
85
86 async def render(self, request: Request, value: Any):
87 options = await self.get_options()

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected