rw.component
Properties
Property
Type
Description
Accessing Component Data
const transformHook = (rw) => {
const {
title,
assetPath,
sharedAssetPath
} = rw.component;
console.log(title); // "Image Gallery"
console.log(assetPath); // "/resources/components/gallery/"
console.log(sharedAssetPath); // "/resources/shared/"
};
exports.transformHook = transformHook;Using Asset Paths
Placeholder Images in Edit Mode
Using in Templates
Last updated
Was this helpful?

