I want to add a size property like, selecting the size of the text box (small, medium & large) how can i do that..?
--
You received this message because you are subscribed to the Google Groups "JQuery Form Builder Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jquery-form-builder...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
_textSize: function(options) { this._log('textSize(' + $.toJSON(options) + ')'); options.nobreak = true; var $textSize = this._label(options).append(' <select>\ <option value="small">100</option> \ <option value="medium">200</option> \ <option value="large">300</option> \ </select>'); var $select = $('select', $textSize); if (options.value == 'default') { $select.val(this._getFbOptions().settings.styles.width); } else { $select.val(options.value); } $select.attr('id', options.name); return $textSize; } ,
_fontPanel:function(options) { //fontFamily, fontSize, styles.fontStyles var idPrefix = options.idPrefix ? options.idPrefix : ''; var names = [idPrefix + 'bold', idPrefix + 'italic', idPrefix + 'underline']; var fontPanel = this._twoRowsOneRow( this._fontPicker({ name: idPrefix + 'fontFamily', value: options.fontFamily }), this._fontSize({ label: 'Size', name: idPrefix + 'fontSize', value: options.fontSize }), this._textSize({ label: 'field Size', name: idPrefix + 'textSize', value: options.width }), this._fontStyles({ names: names, checked: options.fontStyles }).css('paddingLeft', '2em') );
after adding this code in widget.js i am able to see a dropdown in the UI , but i am unable to change the size.
_createFieldProperties: function(name, options, settings, index) { // alert('name = ' + name + ', options._type = '+ options._type); var fieldId = 'fields[' + index + '].'; var $fieldProperties = $('<div class="fieldProperties"> \ <input type="hidden" id="' + fieldId + 'id" name="' + fieldId + 'id" value="null" /> \ <input type="hidden" id="' + fieldId + 'name" name="' + fieldId + 'name" value="' + name + '" /> \ <input type="hidden" id="' + fieldId + 'type" name="' + fieldId + 'type" value="' + options._type + '" /> \ <input type="hidden" id="' + fieldId + 'settings" name="' + fieldId + 'settings" /> \ <input type="hidden" id="' + fieldId + 'sequence" name="' + fieldId + 'sequence" value="' + index + '" /> \ <input type="hidden" id="' + fieldId + 'status" name="' + fieldId + 'status" /> \ </div>'); $fieldProperties.find("input[id$='" + fieldId + "settings']").val($.toJSON(settings)); return $fieldProperties; },
On Tuesday, March 19, 2013 6:18:51 PM UTC+5:30, srenivas Kumar wrote:I want to add a size property like, selecting the size of the text box (small, medium & large) how can i do that..?