djhi / meteor-simpleschema-tapi18n-labels

Allows to useTapi18n for SimpleSchema labels
0 stars 0 forks source link

Add support for placeholder text #2

Open coniel opened 9 years ago

coniel commented 9 years ago

Would it be possible to add the ability to set the field's placeholder in the same way as the label?

var mySchema = new SimpleSchema({
  myProperty: {
    type: String,
    i18nLabel: 'myPropertyKey',
    i18nPlaceholder: 'myPlaceholderPropertyKey'
  }
});
djhi commented 9 years ago

Sure, I just need to find time. Feel free to make a PR :)

Le lun. 15 juin 2015 à 10:16, Oscar Coniel notifications@github.com a écrit :

Would it be possible to add the ability to set the field's placeholder in the same way as the label?

var mySchema = new SimpleSchema({ myProperty: { type: String, i18nLabel: 'myPropertyKey', i18nPlaceholder: 'myPlaceholderPropertyKey' } });

— Reply to this email directly or view it on GitHub https://github.com/djhi/meteor-simpleschema-tapi18n-labels/issues/2.

Gildas Garcia