\Kendo\UI\EditorImmutables

A PHP class representing the immutables setting of Editor.

Methods

deserialization

Callback that allows custom deserialization of an immutable element. The callback accepts two arguments. The DOM element representing the immutable element in the html view and the immutable DOM element, which will be restored.

Returns

\Kendo\UI\EditorImmutables

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$immutables = new \Kendo\UI\EditorImmutables();
$immutables->deserialization(new \Kendo\JavaScriptFunction('function() { }'));
?>

serialization

Kendo template or a callback that allows custom serialization of an immutable element. The callback accepts DOM element as only parameter and is expected to return the HTML source of a DOM element.

Returns

\Kendo\UI\EditorImmutables

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$immutables = new \Kendo\UI\EditorImmutables();
$immutables->serialization('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$immutables = new \Kendo\UI\EditorImmutables();
$immutables->serialization(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?