tree: 145c43f12f3ad5168dc0b27b63a9381f14d01c2b [path history] [tgz]
  1. diff/
  2. gr-diff-app-context-init.ts
  3. gr-diff-app-context-init_test.ts
  4. gr-diff.ts
  5. gr-textarea.ts
  6. gr-textarea_test.ts
  7. README.md
polygerrit-ui/app/embed/README.md

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.