<skype-button>
Web Component wrapper for Skype URI buttons.
Maintained by Tomek Wytrębowicz.
Demo
Install
Using Bower, run:
$ bower install --save skype-button
Using jsDelivr CDN just point to
//cdn.jsdelivr.net/skype-button/latest/skype-button.html
Or download as ZIP.
Usage
-
Import Web Components' polyfill:
<script src="//cdn.jsdelivr.net/polymer.platform/0.3.4/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/skype_button/src/skype-button.html">
or
<link rel="import" href="//cdn.jsdelivr.net/skype-button/latest/skype-button.html">
-
Start using it!
<skype-button></skype-button>
Options
Note that, empty attribute (e.g. <skype-button listTopic>
is mapped to "true"
)
For detailed description, please take a look at Skype URI Tutorial.
Attribute | Options | Default | Description |
---|---|---|---|
name |
call , chat , dropdown
|
call |
If omitted, "audio call" is implied if any participants are specified, and "switch focus to the Skype client" is implied if no participants are specified. |
participants |
string | Coma-separated list of participants. Required if name is specified. |
|
listParticipants |
boolean | false |
Whether to list the participant Skype Names |
video |
boolean | false |
Whether this is a video call |
topic |
string | "" |
The optional topic string for a conference call, GVC, or multichat. |
listTopic |
boolean | false |
Whether to list the topic |
imageSize |
10 , 12 , 14 , 16 , 24 , and 32
|
16 |
Which size of the image asset to use |
imageColor |
skype , white
|
skype |
Which text color variant of the image asset to use |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
For detailed changelog, check Releases.