class Line::Message::Builder::Flex::Partial

The Partial class is an abstract base for creating reusable snippets of Flex Message content. To define a partial, create a new class that inherits from Partial and implements the call instance method.

Within the call method, you can use the standard Flex Message builder DSL methods (e.g., text, box, button) as if you were directly inside the component where the partial is being rendered. This is possible because the Partial instance delegates unknown method calls to the component instance that is rendering it (passed as context during initialization).

Subclass and implement call to create a concrete partial.

See also: