Select Git revision
PizzaList.js
Forked from an inaccessible project.
-
Thomas Fritsch authored
- nouveau dom (maj skin css) - HomePage -> PizzaList - passage PageRenderer -> Router - suppression classe Page (inutile à ce stade avec le Router)
Thomas Fritsch authored- nouveau dom (maj skin css) - HomePage -> PizzaList - passage PageRenderer -> Router - suppression classe Page (inutile à ce stade avec le Router)
PizzaList.js 409 B
import Component from '../components/Component.js';
import PizzaThumbnail from '../components/PizzaThumbnail.js';
export default class PizzaList extends Component {
#pizzas;
constructor(pizzas) {
super('section', { name: 'class', value: 'pizzaList' });
this.pizzas = pizzas;
}
set pizzas(value) {
this.#pizzas = value;
this.children = this.#pizzas.map(pizza => new PizzaThumbnail(pizza));
}
}