12345678910111213141516171819202122232425262728293031323334 |
- require('./idealfile');
- require('./idealradiocheck');
- module.exports = {
- name: 'customInputs',
- options: {
- customInputs: {
- i18n: {
- open: 'Open'
- }
- }
- },
- methods: {
- // @extend
- _init: function() {
- this._buildCustomInputs();
- },
- // @extend
- 'addFields:after': function() {
- this._buildCustomInputs();
- },
- _buildCustomInputs: function() {
- this.$form.find(':file').idealfile(this.opts.customInputs.i18n);
- this.$form.find(':checkbox, :radio').idealradiocheck();
- }
- }
- };
|