Assets
Directory structure
components
com.domain.weatherpack.snowmachine
assets
page
snowstorm.jsUsage
@portal(headEnd)
<script src="{{assetPath}}/snowstorm.js"></script>
@endportalconst transformHook = (rw) => {
// Extract the slider property
const { assetPath } = rw.component;
// Set slider and message properties in our template data
rw.setProps({
assetPath
});
}
exports.transformHook = transformHook;Last updated
Was this helpful?

