Skip to content

Commit 576e30f

Browse files
author
starzu
committed
README improvements
1 parent da1a795 commit 576e30f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
# scala-js-jquery
1+
# scala-js-jquery [![Build Status](https://travis-ci.org/UdashFramework/scala-js-jquery.svg?branch=master)](https://travis-ci.org/UdashFramework/scala-js-jquery) [![Join the chat at https://gitter.im/UdashFramework/scala-js-jquery](https://badges.gitter.im/UdashFramework/scala-js-jquery.svg)](https://gitter.im/UdashFramework/scala-js-jquery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [<img align="right" height="50px" src="http://www.avsystem.com/avsystem_logo.png">](http://www.avsystem.com/)
22

3-
[![Build Status](https://travis-ci.org/UdashFramework/scala-js-jquery.svg?branch=master)](https://travis-ci.org/UdashFramework/scala-js-jquery)
3+
Static types for the jQuery API for [Scala.js](http://www.scala-js.org/) programs.
44

5-
Static types for the jQuery API for [Scala.js](http://www.scala-js.org/) programs.
5+
## Example
66

7-
Sponsored by [AVSystem](http://www.avsystem.com/)
7+
```scala
8+
import io.udash.wrappers.jquery._
9+
10+
val element: JQuery = jQ("#id")
11+
element.text("Text content")
12+
element.attr("example-attr", "value")
13+
element.attr("example-attr") match {
14+
case Some(value) => println(s"Attribute value: $value")
15+
case None => println("Attribute not found!")
16+
}
17+
```

0 commit comments

Comments
 (0)