Live Inputs - option type L

Table Views can display information from the database, but can also display input fields that will automatically saved data to the database as we type on them.

When using live fields in tables we use the option type "L", L stands for Live, this will allow us to show the inputs on the table and saved them auotmatically after being modified.

Whern creating the section make sure to add the option type L

 

$Blog->setOption("VIEW ARTICLES,VER ARTICULOS,VOIR ARTICLES","aside","4","VPSLB",true);

 

The option type L will make the $options['live'] variable = true and will let us use the following variables in our table view

 

 

//declared in header when option type L exists
//$options['live']  = true 

 

There are many type of live inputs:

  • text
  • textarea
  • select
  • calendar
  • time
  • colorpicker
  • switch

See how to use each live input in the Table View Documentation

Current Core clarification

A live Table View color picker requires both L and H, in addition to V. L loads live editing; H loads the color-picker assets. These option letters are checked independently, so their order is not significant. For example, register a searchable, paginated live-color table with VRNLH. Define the color field as ['type' => 'live', 'col' => 'COLOR', 'inputType' => 'colorpicker'] or legacy colorpicker:COLOR. See Live Table Color Picker for the complete example and save behavior.

Live Table Color Picker: syntax, L and H options, and working example

Save acknowledgements and callbacks

Shared live-input handlers display saved feedback only after the native database action returns its success acknowledgement (ACTION success, normally LIVE success). HTTP 200 alone is insufficient: database errors, HTML/login pages, empty responses and transport failures show an error and do not run the success callback. Initialization never means a value was saved. Text, numeric, select, date/time, switch and explicit-save handlers retain their native submission timing.

liveUpdate(encdata, colname, value, onSuccess, onFailure) accepts function callbacks. Prefer functions for new code; existing page-owned callback strings remain supported. Pass a deferred callback rather than immediately invoking a notification function. The optional failure function can clear pending state. Color controls additionally suppress unchanged submissions and track the last confirmed color; this is not a universal no-op policy for every live input.