import template from './expander.html';

const ExpanderComponent = {
  template,
  controller: 'wsExpanderController',
  bindings: {
    showText: '@?',
    hideText: '@?',
    toggleWidthPercent: '@?',
    expanded: '<?',
    onExpand: '&?',
    onCollapse: '&?',
  },
  transclude: {
    header: '?wsExpanderHeader',
    body: 'wsExpanderBody',
  },
};

export default ExpanderComponent;
