ExposedCallbacks.ExposedCallbacks
Last updated
Last updated
/ / / ExposedCallbacks
.ExposedCallbacks
Returns
Gets called when a button in the UI is clicked
Type declaration
â–¸ <K
>(name
, args?
): boolean
| void
| Promise
<boolean
>
Type parameters
K
Parameters
name
K
args?
Optional arguments specific to the button that was clicked. This parameter is an object where each key is a UI_BUTTON and the value is the corresponding arguments for that button.
Returns
boolean
| void
| Promise
<boolean
>
Type declaration
Parameters
...«destructured»
Returns
â–¸ onBackToWebsite(): void
Gets called when the configuring is paused and the user leaves fullscreen configurator mode
Returns
void
â–¸ onCollapseDrawer(): void
Returns
void
â–¸ onExpandDrawer(): void
Returns
void
▸ onHideCustomView(...«destructured»
): void
Parameters
...«destructured»
Returns
void
â–¸ onHidePopUp(): void
Returns
void
â–¸ onPartListUpdate(partList
, hash
): void
fullList fullList (needed for price calculation) of the current configuration
Parameters
partList
KernelPartList
the part list with all details, grouped, etc
hash
string
-
Returns
void
â–¸ onPlanElementAdded(addedObject
): void
Called when an element is added to the plan, not called when wall or construction element added
Parameters
addedObject
UiPlanObject
Returns
void
â–¸ onPlanElementChanged(changedObject
): void
Called when an element is changed in the plan, not called when wall or construction element changed
Parameters
changedObject
UiPlanObject
Returns
void
â–¸ onPlanElementRemoved(removedObject
): void
Called when an element is removed from the plan, not called when wall or construction element removed
Parameters
removedObject
UiPlanObject
Returns
void
â–¸ onPlanUpdate(objects
): void
Gets called if a plan object gets added, changed or removed and returns all objects of the plan
Parameters
objects
UiPlanObject
[]
all objects in the plan
Returns
void
â–¸ onRequestPlan(planId
, image
, items
): void
Parameters
planId
string
image
Base64Image
items
any
[]
Returns
void
â–¸ onRequestProduct(configurationId
, image
, partList
, price
, labels
, configuration
): void
Returns all necessary params when 'Request Product'/'Checkout' button has pressed
Parameters
configurationId
string
id of the current configuration
image
Base64Image
image of the current configuration
partList
KernelPartList
the part list with all details, grouped, etc
price
price of the current configuration, either set via setPrice or from Roomle price service
labels
the label of the catalog and the furniture system
configuration
RapiConfigurationEnhanced
| ExternalConfiguration
the data returned from the Roomle backend
Returns
void
â–¸ onResize(isDesktop
): void
Parameters
isDesktop
boolean
Returns
void
â–¸ onSaveDraft(id
, image
, url
, data
): void
called when triggerSaveDraft called
Parameters
id
string
configuration id or plan id
image
string
image of the current configuration
url
string
generated url from save draft
data
object contains { type: 'plan' | 'configuration', payload: configuration object or plan snapshot data}
Returns
void
â–¸ onShowPopUp(): void
Returns
void
▸ onSidebarEvent(...«destructured»
): void
Parameters
...«destructured»
SidebarEventCallbackInfo
Returns
void
â–¸ onTooltipClose(tooltipName
): void
Gets triggered if a tooltip gets closed by controls button
Parameters
tooltipName
string
Returns
void
â–¸ onUseFullPage(): void
Returns
void
• new ExposedCallbacks():
• onButtonClicked: <K>(name
: K
, args?
: [K
]) => boolean
| void
| Promise
<boolean
>
extends
[K
]
• onShowCustomView: (...__namedParameters
: ) => <boolean
> | Promise
<<boolean
>>
▸ (...«destructured»
): <boolean
> | Promise
<<boolean
>>
<boolean
> | Promise
<<boolean
>>