Home / Lua API Manual / darktable / darktable.gui / darktable.gui.libs / darktable.gui.libs.metadata_view
< darktable.gui.libs.metadata
darktable.gui.libs.modulegroups >

# darktable.gui.libs.metadata_view

The widget displaying metadata about the current image

Attributes:

- has_tostring
- parent : types.dt_lua_lib_t

## 🔗darktable.gui.libs.metadata_view.register_info

    function(
      name : string,
      callback : function
    )

Register a field in the image information module with a callback function to update the field

- name - string - The name displayed for the new information
- callback - function - The function providing the info

callback -

    function(
      image : types.dt_lua_image_t
    ) : string

- image - types.dt_lua_image_t - The image to analyze
- return - string - The extra information to display

## 🔗darktable.gui.libs.metadata_view.destroy_info

    function(
      name : string
    )

Remove the named field from the image information module and it’s associated callback

- name - string - The name of the field, created by darktable.gui.libs.metadata_view.register_info, to remove

< darktable.gui.libs.metadata
darktable.gui.libs.modulegroups >