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