Skip to content

Version notice

1.x is no longer maintained; these docs remain for existing applications. New projects should use 2.x. Existing projects can follow Upgrade from 1.x.

Configure EPG ​

Call setConfig at any time.

Type ​

typescript
interface EPGConfig {
  focusClass?: string;
  defBackHandler?: Function | null;
  tempBackHandler?: Function | null;
  debug?: boolean;
}

Options ​

  • focusClass: global focus class, default vuepg-focus.
  • defBackHandler: default Back callback.
  • tempBackHandler: internal component callback state. Do not configure through setConfig; use onBack, as described in Back callbacks.
  • debug: enables diagnostic console.log output.

Example ​

javascript
epg.setConfig({
  focusClass: "focus",
  defBackHandler: () => {
    console.log("back");
  },
  debug: true,
});