function create(props) {
    var multiButton = Object.create(this);

    _canvasWidget2.default.create.call(multiButton);

    Object.assign(multiButton, MultiButton.defaults, props);

    if (props.value) {
      multiButton.__value = props.value;
    } else {
      multiButton.__value = [];
      for (var i = 0; i < multiButton.count; i++) {
        multiButton.__value[i] = 0;
      }multiButton.value = [];
    }

    multiButton.active = {};
    multiButton.__prevValue = [];

    multiButton.init();

    return multiButton;
  }
function create(props) {
    var multiButton = Object.create(this);

    _canvasWidget2.default.create.call(multiButton);

    Object.assign(multiButton, MultiButton.defaults, props);

    if (props.value) {
      multiButton.__value = props.value;
    } else {
      multiButton.__value = [];
      for (var i = 0; i < multiButton.count; i++) {
        multiButton.__value[i] = 0;
      }multiButton.value = [];
    }

    multiButton.active = {};
    multiButton.__prevValue = [];

    multiButton.init();

    return multiButton;
  }
function create ( props ) { var multiButton = Object . create ( this ) ; _canvasWidget2 . default . create . call ( multiButton ) ; Object . assign ( multiButton , MultiButton . defaults , props ) ; if ( props . value ) { multiButton . __value = props . value ; } else { multiButton . __value = [ ] ; for ( var i = 0 ; i < multiButton . count ; i ++ ) { multiButton . __value [ i ] = 0 ; } multiButton . value = [ ] ; } multiButton . active = { } ; multiButton . __prevValue = [ ] ; multiButton . init ( ) ; return multiButton ; }
Create a new MultiButton instance.
@memberof MultiButton
@constructs
@param {Object} [props] - A dictionary of properties to initialize a MultiButton instance with.
@static
Create a new MultiButton instance .