Ejemplo n.º 1
0
    /**
     * @overridden DOMElement.layout
     */
    layout() {
        if (CategoryStore.getCount() > 0) {
            const html = TemplateFactory.create('templates/precompile/MenuItem', CategoryStore.getAll());

            this.$element.html(html);
        }
    }
Ejemplo n.º 2
0
    /**
     * @overridden DOMElement.layout
     */
    layout() {
        if (ProductStore.getCount() > 0) {
            const html = TemplateFactory.create('templates/precompile/views/ProductItemView', ProductStore.getAll()[0]);

            this.$element.html(html);
        }
    }