jQuery plugins - templates, data link, globalization
-
Upload
hotrannam -
Category
Technology
-
view
2.602 -
download
6
Transcript of jQuery plugins - templates, data link, globalization
jQuery plugins come from Microsoft
@hotrannam
What are they?
Templates
Data Link
Globalization
Roadmap
Shipped as plugins in jQuery 1.4.3
Included as core in jQuery 1.5
jQuery Templates
A template contains markup with binding expressions
Binding expressions are wrapped in new tags called Template tags
Templates are applied to data Render into the DOM as the way
jQuery does
Note: tested on jQuery 1.4.2
API
.tmpl([ data ], [ options ])
jQuery.tmpl(template, [ data ], [ options ] )
.tmplItem()
jQuery.tmplItem(element )
.template([ name ])
jQuery.template(name, template )
.empty()
Template tags
${} {{html}} {{if}} {{else}} {{tmpl}} {{wrap}}
Demo
jQuery Data Link
A .NET data binding at the client side One way and two way Conversion is supported
API
.link( target, [ settings ] ) .unlink( target )
Demo
jQuery Globalization
Available soon…
References
API DocumentationjQuery Templates API – http://api.jquery.com/category/plugins/templates/jQuery Data Link API – http://api.jquery.com/category/plugins/data-link/
DownloadjQuery Templates – http://github.com/jquery/jquery-tmpljQuery Datalink – http://github.com/jquery/jquery-datalinkjQuery Globalization – http://github.com/jquery/jquery-global
DemoGitHub – http://github.com/hotrannam/jquery-in-rails