32 lines
709 B
JavaScript
32 lines
709 B
JavaScript
import { RegisterComponent, Component, SideLoad } from './components.mjs';
|
|
|
|
class CompactProductListing extends Component {
|
|
static __IDENTIFY() { return 'compact-listing'; }
|
|
|
|
constructor() {
|
|
super(CompactProductListing);
|
|
}
|
|
|
|
Render() {
|
|
return {
|
|
template: `
|
|
{this.state.name}
|
|
{this.state.desc}
|
|
£{this.state.price}
|
|
<img src="{this.state.image}"></img>
|
|
`,
|
|
style: `
|
|
compact-listing-component {
|
|
display: flex;
|
|
}
|
|
`,
|
|
};
|
|
}
|
|
|
|
OnceRendered() {
|
|
|
|
}
|
|
}
|
|
|
|
RegisterComponent(CompactProductListing);
|