I need to assign max and min values to Alertifyjs number prompt.
I have this:
alertify.prompt( 'Prompt Title', 'Prompt Message', 'Prompt Value',
function(evt, value) {
alertify.success('You entered: ' + value)
}
, function() {
alertify.error('Cancel')
}).setting({
type : 'number',
min : 8,
max : 30,
value : 8
});
But it does not work for me.
Inspecting Alertifyjs's Prompt page, it looks to me like
min,max, andvalueare not valid settings.If all you need is to bound the value, maybe just use some
ifs: