namespace SmartFormsFields { export class rednaoimagepicker extends sfFormElementBase{ private IsDynamicField=true; private amount:number=0; constructor(options:any,serverOptions:any) { super(options,serverOptions); if(this.IsNew) { this.Options.ClassName='rednaoimagepicker'; this.Options.Label='Image Picker'; this.Options.ImageWidth=0; this.Options.ImageHeight=0; this.Options.MultipleSelection='n'; this.Options.ShowLabels='y'; this.Options.Options=[{label:'Image1',url:smartFormsPath+'images/sflogo.jpg',value:0,sel:'n'},{label:'Image2',url:smartFormsPath+'images/sflogo.jpg',value:0,sel:'n'}]; this.Options.CustomCSS=''; } } GetValueString():any { this.amount=0; if(this.IsIgnored()) return {selectedValues:[]}; var data:any={}; data.selectedValues=[]; var select2SelectedValues=[]; var $selectedOptions=this.JQueryElement.find('select option:selected'); for(var i=0;i<$selectedOptions.length;i++) { var optionIndex=parseInt(rnJQuery($selectedOptions[i]).val()); if(!isNaN(optionIndex)) select2SelectedValues.push(optionIndex); } for(var i=0;i0) this.JQueryElement.find('.image_picker_image').css('width',this.Options.ImageWidth); if(!isNaN(this.Options.ImageHeight)&&parseInt(this.Options.ImageHeight)>0) this.JQueryElement.find('.image_picker_image').css('height',this.Options.ImageHeight); this.JQueryElement.find('select').change(()=>{this.FirePropertyChanged();}); } GenerateInlineElement():string { var select=`