NoUiSlider problem


#1

Hi,

I have followed the guide from https://github.com/ElevateDev/meteor-autoform-nouislider
and set up the basic sliders, yet what I get on the AutoForm is only this.

I cannot move both sliders. There is no range either.

My setup is the following:

singleSlider: {

type: Number,

max: 150,

min: 30,

autoform: {

  type: "noUiSlider",

  noUiSliderOptions: {

    step: 10

  },

  noUiSlider_pipsOptions: {

    mode: 'steps',

    density: 5

  }

}

},

slider: {

type: RangeSchema,

max: 200,

min: 10,

autoform: {

  type: "noUiSlider",

  noUiSliderOptions: {

    step: 10

  },

  noUiSlider_pipsOptions: {

    mode: 'steps',

    density: 5

  }

}

}

Settings.insert({

 pushNotifications: true,

 singleSlider: 30,

 slider: {"lower": 10,"upper":200}

});

	{{#if Template.subscriptionsReady}}

    {{#autoForm collection="Settings" type=update doc=setting id="edit-form" autosave=true}}

		{{> afQuickField name='slider' start="[50,60]"}}

		{{> afQuickField name='singleSlider' range='{"min": 30,"max":50}'}}

    {{/autoForm}}

{{/if}}

Thank you for any clue or link to a working sample.

Cheers
java99


#2

Solved it with setting the div width:

.at-nouislider{
width: 50%;
}