fragment

fun fragment(type: String, init: Fragment.() -> Unit): Fragment

Create and register an inline fragment for use in the field

Return

Returns the created Fragment

Parameters

type

Name of the type that the fragment is to be applied on.

init

Lambda to set up the Fragment to add.

See also