github-widget

1.0.0 • Public • Published

Bootstrap Github Widget Bower version

Demo

Take a look at the examples: examples/index.html

Dependencies

Installation

You have three available options for the installation:

  • Download the latest release
  • Clone the repo: https://github.com/gilliek/bootstrap-github-widget.git
  • Install with bower: bower install bootstrap-github-widget

Usage

Via data attributes

To display the widget, set data-toggle="github-widget" on a container element like a div, along with a data-user="foo".

<div data-toggle="github-widget" data-user="myGithubUsername"></div>

Via data JavaScript

$('#mywidget').githubWidget(options)

Options

Options can be passed via data attributes of JavaScript. For data attributes, append the option name to data- as in data-user="foo".

Name type default description
user string '' GitHub username.
widget string 'repos' Define the widget type. It can take the values: 'repos', 'gists'.
title string 'auto' Panel title
body string '' The content to display before the list of items. It also supports the value 'auto', which will display a default body.
footer string '' Panel footer. It also supports the value 'auto', which will display a default footer.
extrainfo boolean false Require Font-Awesome. Flag to toggle extra information. For now, only the widget 'repos' support this option.
limit integer 5 The number of items to display. A value less than or equal to 0 will display all items.

Contribution

Pull requests are welcome :)

License

Bootstrap Github Widget is licensed under a BSD 3-clauses. See LICENSE.

Readme

Keywords

none

Package Sidebar

Install

npm i github-widget

Weekly Downloads

5

Version

1.0.0

License

ISC

Last publish

Collaborators

  • raynos