Knockout mvvm-m3-slides

545 views

Published on

Playlists : https://www.youtube.com/watch?v=Wblm9FFZvyU&index=2&list=PLLQgkMVoGtcvWc0ad55883Q0puL6fDi8E

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
545
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Knockout mvvm-m3-slides

  1. 1. Built In Bindings John Papa @john_papa http://johnpapa.net
  2. 2. Outline  Built In Bindings          Text & HTML Value bindings Checkboxes and radio buttons Drop down lists Enabling and disabling elements Setting and determining focus Handling events and binding to methods CSS and styling Attributes
  3. 3. Built In Bindings  Built into Knockout  Facilitate binding to attributes for elements  May use multiple binding expressions separated by commas <input type="text" data-bind="enable: allowEditing, value:salePrice" /> <select data-bind="options: colors, value: selectedColor, optionsText: 'name', optionsValue: 'key'" ></select>
  4. 4. Built-in Bindings Click and binding Displayeventstate bindings Bindings for specific attributes Text and value bindings attr checked click css disable enable event hasfocus html options optionsText optionsValue selectedOptions style submit text uniqueName value visible
  5. 5. Value Binding Options: valueUpdate change keyup keypress afterkeydown • input area’s value changes (default) • key is released • key is pressed & while held down • key is pressed <input type="text" data-bind="value:price, valueUpdate:'afterkeydown' " />
  6. 6. DEMO Built In Bindings
  7. 7. Summary  Built In Bindings          Text & HTML Value bindings Checkboxes and radio buttons Drop down lists Enabling and disabling elements Setting and determining focus Handling events and binding to methods CSS and styling Attributes
  8. 8. For more in-depth online developer training visit on-demand content from authors you trust

×