Your SlideShare is downloading. ×
jQuery plugins - templates, data link, globalization
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

jQuery plugins - templates, data link, globalization

2,497
views

Published on

jQuery plugins - templates, data link, globalization

jQuery plugins - templates, data link, globalization

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,497
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
26
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. @hotrannam
  • 2.  Templates  Data Link  Globalization
  • 3.  Shipped as plugins in jQuery 1.4.3  Included as core in jQuery 1.5
  • 4.  A template contains markup with binding expressions  Binding expressions are wrapped in new tags calledTemplate tags  Templates are applied to data  Render into the DOM as the way jQuery does Note: tested on jQuery 1.4.2
  • 5.  .tmpl([ data ], [ options ])  jQuery.tmpl(template, [ data ], [ options ] )  .tmplItem()  jQuery.tmplItem(element )  .template([ name ])  jQuery.template(name, template )  .empty()
  • 6.  ${}  {{html}}  {{if}}  {{else}}  {{tmpl}}  {{wrap}}
  • 7.  A .NET data binding at the client side  One way and two way  Conversion is supported
  • 8.  .link( target, [ settings ] )  .unlink( target )
  • 9.  Available soon… 
  • 10.  API Documentation jQueryTemplates API – http://api.jquery.com/category/plugins/templates/ jQuery Data Link API – http://api.jquery.com/category/plugins/data-link/  Download jQueryTemplates – http://github.com/jquery/jquery-tmpl jQuery Datalink – http://github.com/jquery/jquery-datalink jQuery Globalization – http://github.com/jquery/jquery-global  Demo GitHub – http://github.com/hotrannam/jquery-in-rails