dojox/form/manager/_ClassMixin.js

  • Provides:

    • dojox.form.manager._ClassMixin
  • Requires:

    • dojox.form.manager._Mixin in common
  • dojox.form.manager._ClassMixin

    • type
      Function
    • summary
      Form manager's mixin for testing/assigning/removing
      classes of controlled elements.
    • description
      This mixin provides unified way to check/add/remove a class
      of controlled elements.
      It should be used together with dojox.form.manager.Mixin.
  • dojox.form.manager._ClassMixin.gatherClassState

    • type
      Function
    • parameters:
      • className: (typeof String)
        The class name to test for.
      • names: (typeof Object)
        If it is an array, it is a list of names to be processed.
        If it is an object, dictionary keys are names to be processed.
        If it is omitted, all known form elements are to be processed.
    • source: [view]
         var result = this.inspect(ia(function(name, node){
          return dojo.hasClass(node, className);
         }), names);


         return result; // Object
    • summary
      Gather the presence of a certain class in all controlled elements.
    • returns
      Object
  • dojox.form.manager._ClassMixin.addClass

    • type
      Function
    • parameters:
      • className: (typeof String)
        Class name to add.
      • names: (typeof Object)
        If it is an array, it is a list of names to be processed.
        If it is an object, dictionary keys are names to be processed.
        If it is omitted, all known form elements are to be processed.
    • source: [view]
         this.inspect(aa(function(name, node){
          dojo.addClass(node, className);
         }), names);


         return this; // self
    • summary
      Add a class to nodes according to the supplied set of names
    • returns
      self
  • dojox.form.manager._ClassMixin.removeClass

    • type
      Function
    • parameters:
      • className: (typeof String)
        Class name to remove.
      • names: (typeof Object)
        If it is an array, it is a list of names to be processed.
        If it is an object, dictionary keys are names to be processed.
        If it is omitted, all known form elements are to be processed.
    • source: [view]
         this.inspect(aa(function(name, node){
          dojo.removeClass(node, className);
         }), names);


         return this; // self
    • summary
      Remove a class from nodes according to the supplied set of names
    • returns
      self
  • aa

    • summary
  • ia

    • summary
  • dojox.form.manager

    • type
      Object
    • summary
  • dojox.form

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary