Exemplo n.º 1
0
        public IntegerEditor(jQueryObject input, IntegerEditorOptions opt)
            : base(input, opt)
        {
            input.AddClass("decimalQ");

            dynamic numericOptions = jQuery.ExtendObject(DecimalEditor.DefaultAutoNumericOptions(), new
            {
                vMin = options.MinValue,
                vMax = options.MaxValue
            });

            ((dynamic)input).autoNumeric(numericOptions);
        }
Exemplo n.º 2
0
        public IntegerEditor(jQueryObject input, IntegerEditorOptions opt)
            : base(input, opt)
        {
            input.AddClass("integerQ");

            dynamic numericOptions = jQuery.ExtendObject(DecimalEditor.DefaultAutoNumericOptions(), new
            {
                vMin = options.MinValue ?? 0,
                vMax = options.MaxValue ?? 2147483647,
                aSep = (string)null
            });

            ((dynamic)input).autoNumeric(numericOptions);
        }