Files
gerrit/polygerrit-ui/app/embed
Ben Rohlfs 5e2d1e7b8b Convert gr-diff helpers to TypeScript
Change-Id: If09a43e8d890f0ea51ca997b3281575c2e61d084
2020-08-07 12:08:06 +02:00
..
2020-06-25 09:20:13 +02:00

This folder contains shared components that can be used independently of Gerrit.

gr-diff

gr-diff.js is the gr-diff component used in gerrit to render diff. If you want to use it, feel free to import it and use it in your project as:

<gr-diff></gr-diff>

All supported attributes defined in polygerrit-ui/app/elements/diff/gr-diff/gr-diff.js, you can pass them by just assigning them to the gr-app element.

To customize the style of the diff, you can use css variables, all supported variables defined in polygerrit-ui/app/styles/themes/app-theme.js and polygerrit-ui/app/styles/themes/dark-theme.js.