text-toggle

WebJar for text-toggle

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bowergithub.jifalops
Идентификатор

Идентификатор

text-toggle
Последняя версия

Последняя версия

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

text-toggle
WebJar for text-toggle
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/jifalops/text-toggle

Скачать text-toggle

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/text-toggle/ -->
<dependency>
    <groupId>org.webjars.bowergithub.jifalops</groupId>
    <artifactId>text-toggle</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/text-toggle/
implementation 'org.webjars.bowergithub.jifalops:text-toggle:0.2.2'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jifalops/text-toggle/
implementation ("org.webjars.bowergithub.jifalops:text-toggle:0.2.2")
'org.webjars.bowergithub.jifalops:text-toggle:jar:0.2.2'
<dependency org="org.webjars.bowergithub.jifalops" name="text-toggle" rev="0.2.2">
  <artifact name="text-toggle" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.jifalops', module='text-toggle', version='0.2.2')
)
libraryDependencies += "org.webjars.bowergithub.jifalops" % "text-toggle" % "0.2.2"
[org.webjars.bowergithub.jifalops/text-toggle "0.2.2"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)

Модули Проекта

Данный проект не имеет модулей.

Published on Vaadin  Directory Stars on vaadin.com/directory Published on webcomponents.org

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.

1. Show text based on outside condition.<br/>
<button onclick="toggle();">Toggle</button>
<text-toggle id="reader" t="true" f="false"></text-toggle>
<br/><br/>


2. Using element as control.
<text-toggle click-events t="true" f="false"></text-toggle>
<br/><br/>

3. As an HTML anchor.
<text-toggle link t="true" f="false"></text-toggle>
<br/><br/>

4. Chaging an outside condition.
<text-toggle id="writer" link t="true" f="false" onclick="setTimeout(read());"></text-toggle>
<br/><br/>

Full demo: webcomponents.org | github.

API: webcomponents.org | github.

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

Версии библиотеки

Версия
0.2.2