Directory

← Back

GitHub Buttons Add-on

Add-on that allows to add GitHub Buttons with different styles.

Author

Contributors

Rating

GitHub Buttons Add-on allows you to create three different types of GitHub Buttons to represent a given user/repository:

  • Basic GitHub Button -> only allows to add a STAR button.
  • Mdo GitHub Button -> allows to add STAR, FOLLOW, WATCH & FORK buttons.-
  • Ntkme GitHub Button -> allows to add the same as Mdo style plus ISSUE & DOWNLOAD buttons.

This component is the server-side component of @flowingcode/wc-ngx-github-buttons Web Component which is a wrapper of the Angular ngx-github-buttons library.

Sample code

GitHubButton githubButton = new GitHubButton("GoogleMapsAddon", "FlowingCode");
githubButton.setCount(true);
githubButton.setTarget("_blank");
MdoGitHubButton mdoGithubButton = new MdoGitHubButton("GoogleMapsAddon", "FlowingCode");
mdoGithubButton.setType(MdoGitHubButtonType.FOLLOW);
mdoGithubButton.setSize(ButtonSize.LARGE);  
NtkmeGitHubButton ntkmeGithubButton = new NtkmeGitHubButton("GoogleMapsAddon", "FlowingCode");
ntkmeGithubButton.setType(NtkmeGitHubButtonType.WATCH);
ntkmeGithubButton.setCount(true);
ntkmeGithubButton.setSize(ButtonSize.LARGE);
ntkmeGithubButton.setTarget("_blank");

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Initial release.

Released
2022-07-04
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 23
Browser
N/A
Online