class documentation
Displays an image.
Examples:
def execute(): return {"image": "https://voxel51.com/your/image.png"} def resolve_output(self, ctx): schema = { "height": "100px", "width": "100px", "alt": "My image alt text", "href": "https://voxel51.com", "operator": "@my/plugin/my_operator" | self.my_operator (in Python Panels), "prompt": False, "params": {"foo": "bar"}, } outputs = types.Object() outputs.define_property( "image", types.String(), label="Image", view=types.ImageView(), ) return types.Property(outputs)
Parameters | |
height | the height of the image |
width | the width of the image |
alt | the alt text of the image |
href | the url to navigate to when the image is clicked |
operator | the name of the callable operator to execute when the image is clicked |
prompt | whether to prompt the user before executing the operator |
params | the parameters to pass to the operator |
Method | __init__ |
Undocumented |
Inherited from View
:
Method | clone |
Undocumented |
Method | kwargs |
Undocumented |
Method | to |
Undocumented |
Instance Variable | caption |
Undocumented |
Instance Variable | component |
Undocumented |
Instance Variable | components |
Undocumented |
Instance Variable | container |
Undocumented |
Instance Variable | description |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | placeholder |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | space |
Undocumented |
Instance Variable | _kwargs |
Undocumented |