Jump to content
uniGUI Discussion Forums

fcarvalho4

uniGUI Subscriber
  • Content Count

    107
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by fcarvalho4


  1. or in, servermodule.customCSS 

     
    input[type=text]:focus, textarea:focus {
      box-shadow: 0 0 7px rgba(81, 203, 238, 1);
      border: 2px solid rgba(81, 203, 238, 1);
      border-radius: 2px;
    }
     
    input[type=password]:focus, textarea:focus {
      box-shadow: 0 0 7px rgba(81, 203, 238, 1);
      border: 2px solid rgba(81, 203, 238, 1);
      border-radius: 2px;
    }
     
    input[type=combobox]:focus, textarea:focus {
      box-shadow: 0 0 7px rgba(81, 203, 238, 1);
      border: 2px solid rgba(81, 203, 238, 1);
      border-radius: 2px;
    }
     
    input[type=checkbox]:focus, textarea:focus {
      box-shadow: 0 0 7px rgba(81, 203, 238, 1);
      border: 2px solid rgba(81, 203, 238, 1);
    }
     
    input[type=date]:focus, textarea:focus {
      box-shadow: 0 0 7px rgba(81, 203, 238, 1);
      border: 2px solid rgba(81, 203, 238, 1);
      border-radius: 2px;
    }

  2. Hello everybody!
    One more client side function,only validate numbers!

     

    UniEdit1 -> ClientEvents -> UniEvents

     

    function beforeInit(sender, config)
    {
    Ext.apply(Ext.form.field.VTypes, {
            nonDecimalNumber: function (value) {
              return /^\d{13,13}$/.test(value);  
            },
            nonDecimalNumberText: 'The length must be 13 characters'
    });
     
    Ext.apply(sender, {
      extend: 'Ext.form.field.Number',
      xtype: 'numberfield',
      minValue: 0000000000000,
      maxValue: 9999999999999,
      allowBlank: false,
      maskRe: /[0-9]/,  
      vtype: 'nonDecimalNumber'
    });
    }
    • Upvote 1
×