Auto save

Auto Save of the Page (No Save Button Needed)

Sometimes, one might want to provide the user with a user interaction model where the content on the page is saved automatically and thus, remove the need for a "save button".

The easiest way to accomplish this is to use the ViewModel tagged value, Span.Eco.AutoSave

You can also do this "manually" if you have special needs, like this:

Periodic action (repeat every i.e. 2000 ms and set DisableExpression to 'not selfVM.IsDirty' in order to only run when something IS dirty) is set to be visible if there is dirty data:

if selfVM.IsDirty  then
selfVM.Save;
  0
else
  0
endif

To hide the sidebar to not show the save button, please see Layout_and_CSS.

This page was edited 74 days ago on 02/10/2024. What links here