UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

28 lines (27 loc) 765 B
/*! * KoliBri - The accessible HTML-Standard */ import { iconsProp, labelProp } from "../../props"; import { BaseController } from "../base-controller"; import { iconPropsConfig } from "./api"; export class IconController extends BaseController { constructor(stateAccess) { super(stateAccess, iconPropsConfig); } componentWillLoad(props) { const { icons, label } = props; this.watchIcons(icons); this.watchLabel(label); } watchIcons(value) { iconsProp.apply(value, (v) => { this.setRenderProp('icons', v); }); } watchLabel(value) { labelProp.apply(value, (v) => { this.setRenderProp('label', v); }); } } //# sourceMappingURL=controller.js.map