Closed zertex closed 5 years ago
My custom type not work... What I do wrong?
Define custom types
const additionalTypes = { alignSelect: { // name of custom type html: function(elemId, name, value, meta) { let onclick = ''; return '<select name="' + name + '" id="' + name + '" class="alignpicker">'+ '<option value="left">Слева</option>'+ '<option value="center">По центру</option>'+ '<option value="right">Справа</option>'+ '</select>'; }, valueFn: false } };
Define parts
... const theOptionMeta = { ... 'align: { group: "Align", name: "Placement", type: "alignSelect", options:[]}, ... }
Init properties
$("#params-element").jqPropertyGrid(theOptionObj, {meta: theOptionMeta, customTypes: additionalTypes});
Sorry, npm not load needed version
My custom type not work... What I do wrong?
Define custom types
Define parts
Init properties