I needed a lightweight solution for CSS selectors in com.google.gwt.dom.client.Element so I made a GWT port of the JavaScript library sizzlejs.com/
GWTSIZZLE : http://code.google.com/p/gwtsizzle/
Since it has a very simple JavaScript API it only took me 1 hour to author this project. It is much more lighter than using gquery (about 19kb). Any feedback is most appreciated.
Usage example:
// ala JavaScript
JsArray<Element> result = Sizzle.sizzleArray("div p");
for (int i = 0; i < result.length(); i++)
System.out.println(result.get(i).getTagName());
// ala Java
for (Element e : Sizzle.sizzleCol("div p"))
System.out.println(e.getTagName());
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/a2i1sHAnU74J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment