March 2018
Beginner to intermediate
514 pages
13h 11m
English
Earlier in the chapter, the properties.js file was described as holding all properties in one big JSON file. Try splitting that into its own segments and define them as variables which are later returned as a JSON file:
//properties.jsdefine([], function(){ var dimensions = { uses: "dimensions" } var measures = { uses: "measures" } var sorting = { uses: "sorting" } var sorting = { uses: "sorting" } var addons= { uses: "addons" } var settings = { uses : "settings" } return { type: "item", component: "accordion", items: { dimension: dimensions, measures: measures, sorting: sorting, addons: addons, settings: settings } }})
Read now
Unlock full access