Sha256: 42665d7ee89ec12f1d480550ce88d2276aebd4916590be22e1ecd38523145059
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 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.modelName + '.' + this.options.propertyName); }, inlineHelpText: function() { return I18n.t('editor.inline_help.' + this.model.modelName + '.' + this.options.propertyName, {defaultValue: ''}); } };
Version data entries
6 entries across 6 versions & 1 rubygems