Skip to content

scalajs-io/jquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JQuery API for Scala.js

jquery - JavaScript library for DOM operations

Description

jQuery is a fast, small, and feature-rich JavaScript library.

Build Requirements

Build/publish the SDK locally

 $ sbt clean publish-local

Running the tests

Before running the tests the first time, you must ensure the npm packages are installed:

$ npm install

Then you can run the tests:

$ sbt test

Examples

import io.scalajs.jquery._
import io.scalajs.jquery.JQuery.$
import scala.scalajs.js
 
$("#greatphoto").attr(new js.Object {
    val alt: String = "Beijing Brush Seller"
    val title: String = "photo by Kelly Clark"
})

Artifacts and Resolvers

To add the JQuery binding to your project, add the following to your build.sbt:

libraryDependencies += "io.scalajs.npm" %%% "jquery" % "0.5.0"

Optionally, you may add the Sonatype Repository resolver:

resolvers += Resolver.sonatypeRepo("releases") 

About

JavaScript library for DOM operations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages