MCPcopy
hub / github.com/modelscope/ms-swift / element

Method element

swift/ui/base.py:251–254  ·  view source on GitHub ↗

Get element by elem_id

(cls, elem_id)

Source from the content-addressed store, hash-verified

249
250 @classmethod
251 def element(cls, elem_id):
252 """Get element by elem_id"""
253 elements = cls.elements()
254 return elements[elem_id]
255
256 @classmethod
257 def argument(cls, elem_id):

Callers 15

runMethod · 0.80
after_build_uiMethod · 0.80
do_build_uiMethod · 0.80
sampleMethod · 0.80
do_build_uiMethod · 0.80
after_build_uiMethod · 0.80
do_build_uiMethod · 0.80
trainMethod · 0.80
after_build_uiMethod · 0.80
do_build_uiMethod · 0.80
exportMethod · 0.80
after_build_uiMethod · 0.80

Calls 1

elementsMethod · 0.80

Tested by

no test coverage detected