/*!
 * KoliBri - The accessible HTML-Standard
 */
import { labelProp } from "../../props";
import { BaseController } from "../base-controller";
import { clickButtonPropsConfig } from "./api";
export class ClickButtonController extends BaseController {
    constructor(stateAccess) {
        super(stateAccess, clickButtonPropsConfig);
        this.handleClick = () => {
            console.log(this, 'button clicked');
        };
    }
    componentWillLoad(props) {
        const { label } = props;
        this.watchLabel(label);
    }
    watchLabel(value) {
        labelProp.apply(value, (v) => {
            this.setRenderProp('label', v);
        });
    }
}
//# sourceMappingURL=controller.js.map
