import Events from "../../lib/events.js"; import BasePage from "../base.js"; import Validation from "../../lib/validation.js"; export default class PageStoreProductPermutations extends BasePage { static hash = hashPageStoreProductPermutations; constructor(router) { super(router); } initialize() { this.sharedInitialize(); hookupFilters(); hookupButtonsSaveCancel(); hookupTableMain(); hookupOverlayConfirm(savePermutations); } hookupFilters() { Events.initialiseEventHandler(idFilterCategory, flagInitialised, function(filterCategory) { console.log("hooking up filter category"); /* listCategories.forEach(function(category) { console.log('adding category: ', category.value, category.text); /* let option = document.createElement('option'); option.value = category.value; option.text = category.text; * filterCategory.appendChild(document.createElement('