Skip to content

RWS/trados-ui-extensibility

Repository files navigation

Trados UI extensibility

Functionality for Trados user interface extensibility.

Usage

import {
  trados,
  ExtensionElement,
  ExtensibilityEventDetail
} from "@trados/trados-ui-extensibility";

// define custom elements
const elements: ExtensionElement[] = [
  {
    elementId: "myCustomButton",
    location: "project-details-toolbar",
    text: "My custom button",
    type: "button",
    actions: [
      {
        eventType: "onclick",
        eventHandler: (detail: ExtensibilityEventDetail) => {
          console.log("My custom button was clicked", detail.project);
        },
        payload: ["project"]
      }
    ]
  }
];

// register extension with Trados
trados.onReady(elements, () => {
  console.log("Trados UI extension registered");
});

License

The functionality is available with a MIT license.

About

Repository for Trados user interface extensibility

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages