Constructor
new MultiComponent(dataObjectopt, optionsopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
dataObject |
DataObject
|
<optional>
|
null
|
|
options |
Object
|
<optional>
|
{}
|
Properties
Name |
Type |
Attributes |
Default |
Description |
components |
Array.<Component>
|
<optional>
|
[]
|
|
|
- Source:
Example
const multiComponent = new MultiComponent(undefined, {
components: [
new EditProfileComponent(...),
new EditEmailComponent(...),
new EditBioComponent(...)
]
})
// Now multiComponent is showing just the first component, EditProfileComponent
multiComponent.showAt(1) // Hide EditProfileComponent and show EditEmailComponent