CoolCMS API

InlineEditableRenderer

Renderer whose value can be changed inline from the list: the change sends the signal `inlineUpdate!` and saves the new property value to the database (handled in {@see \App\UI\Admin\System\Components\DataGridComponent\Traits\HandleTrait}).

Implemented by SelectRenderer (dropdown) and ToggleRenderer (switch); both share the value => label map and the target property (see InlineEditableTrait).

Table of Contents

Methods

getOptions()  : array<int|string, string>
getUpdateProperty()  : string
Property (database column) the new value is saved to.

Methods

getOptions()

public getOptions() : array<int|string, string>
Return values
array<int|string, string> —

value => label

On this page

Search results