SOURCE CODE: Uize.Widgets.Button.Square.Icon.VisualSampler (view docs)

/*______________
|       ______  |   U I Z E    J A V A S C R I P T    F R A M E W O R K
|     /      /  |   ---------------------------------------------------
|    /    O /   |    MODULE : Uize.Widgets.Button.Square.Icon.VisualSampler Class
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2015-2016 UIZE
|          /___ |   LICENSE : Available under MIT License or GNU General Public License
|_______________|             http://uize.com/license.html
*/

/* Module Meta Data
  type: Class
  importance: 1
  codeCompleteness: 5
  docCompleteness: 100
*/

/*?
  Introduction
    The =Uize.Widgets.Button.Square.Icon.VisualSampler= class implements a visual sampler widget for the =Uize.Widgets.Button.Square.Icon.Widget= class.

    *DEVELOPERS:* `Chris van Rensburg`
*/

Uize.module ({
  name:'Uize.Widgets.Button.Square.Icon.VisualSampler',
  superclass:'Uize.Widgets.VisualSampler.Widget',
  required:[
    'Uize.Widgets.Button.Square.Icon.Widget',
    'Uize.Widgets.StateValues'
  ],
  builder:function (_superclass) {
    'use strict';

    return _superclass.subclass ({
      omegastructor:function () {
        this.addStateCombinationSamples ({
          flavor:['normal','positive','negative','primary'],
          size:Uize.Widgets.StateValues.size
        });
      },

      set:{
        samplerWidgetClass:Uize.Widgets.Button.Square.Icon.Widget
      }
    });
  }
});