BackLink

The backLink action set allows you to modify back button right in the top left side of admin header.

Setup

Create an app at entry file.

// Embed App entry file
import { app } from 'shoplazza-app-bridge';

app.init();

Update options

Set backLink text and click event handler.

import { backLink } from 'shoplazza-app-bridge';

backLink.setAction({
  display: true,
  text: 'Return app',
  onClick: () => {
    // Do somethings
  }
});