Home Manual Reference Source Repository
import {LayoutSerializer} from 'ug-layout/layout/LayoutSerializer'
public class | source

LayoutSerializer

Implements:

  • Serializer<Layout, SerializedLayout>

Serializes/deserializes a layout renderable.

Static Method Summary

Static Public Methods
public static

Invoked when the serializer is registered.

Constructor Summary

Public Constructor
public

Creates an instance of LayoutSerializer.

Method Summary

Public Methods
public

Deserializes a serialized layout node.

public

Serializes a Layout renderable.

Static Public Methods

public static register(container: SerializerContainer) source

Invoked when the serializer is registered.

Params:

NameTypeAttributeDescription
container SerializerContainer

Public Constructors

public constructor(_container: SerializerContainer) source

Creates an instance of LayoutSerializer.

Params:

NameTypeAttributeDescription
_container SerializerContainer

Public Methods

public deserialize(node: SerializedLayout): ConfiguredRenderable<Layout> source

Deserializes a serialized layout node.

Params:

NameTypeAttributeDescription
node SerializedLayout

public serialize(node: Layout): SerializedLayout source

Serializes a Layout renderable.

Params:

NameTypeAttributeDescription
node Layout