Knockout.js – Updating Single Array Element (Oracle JET) by Andrejus Baranovskis

image

If you implement tables and using Knockout.js to push data updates from JS to HTML – probably you experience a situation when it doesn’t work to push an update for one of the columns. I mean you could replace the whole observable array element – this would cause full row refresh. But visually this doesn’t look nice and why to refresh the whole row, if only one (or few) element (-s) from the row must be refreshed.
If you need to refresh a specific array element (or row column in other words) – you must define the value of that column to be observable. Refresh will be happening much more smooth, instead of refreshing whole row. See how fast Risk column value is changed after clicking on Process button: Table is implemented with Oracle JET table component. JET table allows to define template slots, this helps to create a better structure for table columns implementation: Read the complete article here.

 

Developer Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.