updateOnly Summary Broadcasts the specified changeset to all attached views. Usage public virtual void updateOnly(Change[] changes) Parameters changes The changeset to pass to the views. Description Enables precise control over updates to the attached view(s) by passing a changeset to the views. Views respond to the changeset arbitrarily. This enables custom view updating logic such as DOM diffing and other fine-grained UI updates. Unlike Model.updateAll, this method will not re-render the entire view (unless explicitly specified to do so in the view code). Examples Basic Usage 12345678import Altitude.Frontend; class Menu : Model{ public void select(string href) { this.updateOnly([ new Change("menu-item", href) ]); } } Share HTML | BBCode | Direct Link