Open appuku10 opened 4 years ago
function processOptions(parentId, names, data, cb) { var schemas = {}; var schema = { type: "string" };
if (data[parentId] === "efg") { schema.title = "efg"; schema.enum = ["", ""]; } else if (data[parentId] === "abc") { schema.title = "abc"; schema.enum = ["", ""]; }
schemas["$.sub" + parentId] = schema; setTimeout(function() { cb(schemas); }, 500); // in order to show asynchrony }
Hey ,
Code:
`function (names, data, cb) { var schemas = new Object(); var schema = new Object();
}`
How can i get dynamic value instead of "option1" , what parameter should i pass to get Parent Option's Id