Home / Lua API Manual / events / view_changed
< mouse-over-image-changed
post-import-film >

# view_changed

`event`

This event is triggered after the user changed the active view

#view-changed.callback

    function(
      event : string,
      old_view : types.dt_lua_view_t,
      new_view : types.dt_lua_view_t
    )

- event - string - The name of the event that triggered the callback.
- old_view - types.dt_lua_view_t - The view that we just left
- new_view - types.dt_lua_view_t - The view we are now in

#view-changed.extra registration parameters

This event has no extra registration parameters.

< mouse-over-image-changed
post-import-film >