View Source ExTeal.Plugin behaviour (ExTeal v0.28.1)

The base module that describes the functionality of a plugin

Summary

Types

@type t() :: %ExTeal.Plugin{
  js_config: term(),
  navigation_component: term(),
  options: term(),
  router: term(),
  scripts: term(),
  styles: term(),
  title: term(),
  uri: term()
}

Callbacks

@callback js_config() :: map()
@callback navigation_component() :: String.t() | nil
@callback router() :: module() | nil
@callback scripts() :: [ExTeal.Asset.Script.t()]
@callback styles() :: [ExTeal.Asset.Style.t()]
@callback title() :: String.t()
@callback uri() :: String.t() | nil

Functions