Sha256: 040b04400f77e9937fe83ebb3f4327c09b5432190bbfc3b8e7dda8f0346db880
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
pageflow.inputView = { ui: { labelText: 'label .name', inlineHelp: 'label .inline_help' }, onRender: function() { this.$el.addClass(this.model.modelName + '_' + this.options.propertyName); this.ui.labelText.text(this.localizedAttributeName()); this.ui.inlineHelp.text(this.inlineHelpText()); if (!this.inlineHelpText()) { this.ui.inlineHelp.hide(); } }, localizedAttributeName: function() { return I18n.t('activerecord.attributes.' + this.model.i18nKey + '.' + this.options.propertyName); }, inlineHelpText: function() { return I18n.t('editor.inline_help.' + this.model.i18nKey + '.' + this.options.propertyName, {defaultValue: ''}); } };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.2.1 | app/assets/javascripts/pageflow/editor/views/input_view.js |
pageflow-0.2.0 | app/assets/javascripts/pageflow/editor/views/input_view.js |