pos. product-details. action. renderTarget
Target
A full-screen extension target that renders when a pos.product-details.action.menu-item.render
target calls for it
Was this section helpful?
Action
jsx
import {render} from 'preact';
export default async () => {
render(<Extension />, document.body);
};
const Extension = () => {
return (
<s-navigator initial-screen-name="ProductDetails">
<s-screen name="ProductDetails" title="Product Details">
<s-scroll-box>
<s-text>Product ID: {shopify.product.id}</s-text>
</s-scroll-box>
</s-screen>
</s-navigator>
);
};
Examples
Action
jsx
import {render} from 'preact'; export default async () => { render(<Extension />, document.body); }; const Extension = () => { return ( <s-navigator initial-screen-name="ProductDetails"> <s-screen name="ProductDetails" title="Product Details"> <s-scroll-box> <s-text>Product ID: {shopify.product.id}</s-text> </s-scroll-box> </s-screen> </s-navigator> ); };