Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jifalops/text-toggle
Show one of two strings based on a condition. Clickability optional.
https://github.com/jifalops/text-toggle
Last synced: about 2 months ago
JSON representation
Show one of two strings based on a condition. Clickability optional.
- Host: GitHub
- URL: https://github.com/jifalops/text-toggle
- Owner: jifalops
- License: mit
- Created: 2017-07-11T16:32:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T05:08:34.000Z (over 6 years ago)
- Last Synced: 2024-11-08T20:49:50.007Z (2 months ago)
- Language: HTML
- Size: 1.89 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/jifalopstext-toggle)
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/jifalopstext-toggle.svg)](https://vaadin.com/directory/component/jifalopstext-toggle)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/text-toggle)# text-toggle
Show one of two strings based on a condition. Clickability optional.## Installation
```
bower install --save jifalops/text-toggle
```## Demo
See full demo for examples using Polymer.```html
1. Show text based on outside condition.
Toggle
2. Using element as control.
3. As an HTML anchor.
4. Chaging an outside condition.
```Full demo:
[webcomponents.org](https://www.webcomponents.org/element/jifalops/text-toggle/demo/demo/index.html)
| [github](https://jifalops.github.io/text-toggle/components/text-toggle/demo/).API: [webcomponents.org](https://www.webcomponents.org/element/jifalops/text-toggle/text-toggle)
| [github](https://jifalops.github.io/text-toggle).## Contributing
1. Fork it on Github.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request## License
[MIT](https://opensource.org/licenses/MIT)