| | |
| | | return options || null; |
| | | }, getData: function () { |
| | | return options.data || null; |
| | | }, getHtmlData: function () { |
| | | return that.getHtmlData() || null; |
| | | }, geticeEditorObjects: function () { |
| | | return iceEditorObjects || null; |
| | | },getImages:function () { |
| | |
| | | var _html = $('<div style="height:100%;width:100%;"></div>'); |
| | | var _script = $('<div style="height:100%;width:100%;"></div>');; |
| | | that.generateHtml(options.data, _html,_script); |
| | | console.log(_html.html()); |
| | | var _htmlCode = staticField.htmlCode.format(_html.html(),_script.html()); |
| | | document.getElementById('generate-code-view').value = style_html(_htmlCode, 4, ' ', 400); |
| | | layer.open({ |
| | |
| | | }); |
| | | |
| | | }); |
| | | |
| | | $('.generateHtmlData').on('click', function () { |
| | | var _html = $('<div style="height:100%;width:100%;"></div>'); |
| | | var _script = $('<div style="height:100%;width:100%;"></div>'); |
| | | that.generateHtml(options.data, _html,_script); |
| | | console.log(_html.html()); |
| | | return _html.html(); |
| | | }); |
| | | |
| | | that.renderForm(); |
| | | } |
| | | |
| | |
| | | return json; |
| | | } |
| | | |
| | | |
| | | //获取表单数据回调 |
| | | Class.prototype.getHtmlData = function () { |
| | | var that = this, |
| | | options = that.config; |
| | | var _html = $('<div style="height:100%;width:100%;"></div>'); |
| | | var _script = $('<div style="height:100%;width:100%;"></div>'); |
| | | that.generateHtml(options.data, _html,_script); |
| | | return _html.html(); |
| | | } |
| | | |
| | | //递归改变禁用属性 |
| | | Class.prototype.findItemToDisable = function (jsondata) { |
| | | var that = this |