vazco / meteor-universe-autoform-select

Meteor universe autoform select
MIT License
16 stars 10 forks source link

how to show "removeButton"? #33

Closed thearabbit closed 8 years ago

thearabbit commented 8 years ago

I base on AdminLTE layout. I would like to show removeButton via:

    parentId: {
        type: String,
        label: 'Parent id',
        optional: true,
        autoform: {
            type: 'universe-select',
            afFieldInput: {
                uniPlaceholder: 'Select One',
                removeButton: true,
                optionsPlaceholder: true,
                optionsMethod: 'loan.selectOpts.location'
            }
        }
    },

But don't work.

MichalW commented 8 years ago

If you would like to hide removeButton, you need set it to false:

removeButton: false

thearabbit commented 8 years ago

Excuse me with wrong title, I would like to show removeButton.

autoform: {
            type: 'universe-select',
            afFieldInput: {
                uniPlaceholder: 'Select One',
                removeButton: true, // don't work
                optionsPlaceholder: true,
                optionsMethod: 'loan.selectOpts.location'
            }
        }

But don't work.

MichalW commented 8 years ago

removeButton: true work only with multiple: true

thearabbit commented 8 years ago

Thanks for your reply, why don't support single select?

thearabbit commented 8 years ago

Thanks again, I close this