T - type parameter for the element fragment implementation.@Exported public interface ElementFragment<T extends ElementFragment<T>> extends Fragment
ElementFragment<?> fragment = FragmentFactory.newElementFragment().useElement("HomePage")
There are multiple ways arguments may be set into the fragment:
ElementFragment.addArgument(String, String)ElementFragment.useArguments(String, String...)Fragment.Scope, Fragment.Style| Modifier and Type | Method and Description |
|---|---|
T |
addArgument(String name,
String value)
Adds a name-value pair as an argument.
|
T |
scopeAs(Fragment.Scope scope)
Sets the manner in which variables in the calling element are available to the called element, and vice versa.
|
T |
useArguments(String variable,
String... more)
Sets Sites variables as arguments.
|
T |
useElement(String elementName)
Sets the element name used by this fragment.
|
T useElement(String elementName)
elementName - the name of the element used by this fragment.T useArguments(String variable, String... more)
variable - a Site variable to add as argumentmore - optional more Site variables to add as argumentsT addArgument(String name, String value)
name - the name for the argumentvalue - the value for the argument.T scopeAs(Fragment.Scope scope)
Fragment.Scope.LOCALscope - the scope for the invoking element variables.Scope