Closed septe01 closed 11 months ago
hello I'm septe.
I have isse when I want to implement multi select input in my project.
Property 'form_blocks' does not exist on type 'GanttStatic'.
how to fix it. could any one help me please
base project : react typeScript
` gantt.form_blocks['multiselect'] = { render: function(sns) { var height = (sns.height || '23') + 'px'; var html = "
set_value: function(node, value, ev, sns) { node.style.overflow = 'visible'; node.parentNode.style.overflow = 'visible'; node.style.display = 'inline-block'; var select = $(node.firstChild) as any; if (value) { value = (value + '').split(','); select.val(value); } else { select.val([]); } select.chosen(); if (sns.onchange) { select.change(() => { sns.onchange.call(this); }); } select.trigger('chosen:updated'); select.trigger('change'); }, get_value: function(node, ev) { var value = $(node.firstChild).val(); return value; }, focus: function(node) { $(node.firstChild).focus(); }, }; `
solved ..
Property 'form_blocks' does not exist on type 'GanttStatic
hello I'm septe.
I have isse when I want to implement multi select input in my project.
Property 'form_blocks' does not exist on type 'GanttStatic'.
how to fix it. could any one help me please
base project : react typeScript
` gantt.form_blocks['multiselect'] = { render: function(sns) { var height = (sns.height || '23') + 'px'; var html = "
'; return html; },