fcf.module({
  name: "fcfControls:templates/pagination.wrapper.js",
  dependencies: ["fcf:NClient/Wrapper.js"],
  module: function(Wrapper){
    return class WrapperEx extends Wrapper{

      constructor(a_initializeOptions){
        super(a_initializeOptions);
      }

      onArgPage(){
        this.emit("change", {wrapper: this, page: this.getArg("page")});
      }

      onClick(a_event){
        var value = a_event.target.getAttribute("value");
        this.setArg("page", value);
        a_event.preventDefault();
      }
    };
  }
});
