@fleetbase/ember-ui
Version:
Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.
20 lines (18 loc) • 596 B
JavaScript
import Component from '@glimmer/component';
import { action } from '@ember/object';
/**
* Collapsible section wrapper for the properties panel.
*
* @argument {String} title - Section title
* @argument {String} icon - FontAwesome icon name
* @argument {Boolean} isOpen - Whether the section is expanded
* @argument {Function} onToggle - Called when the header is clicked
*/
export default class TemplateBuilderPropertiesPanelSectionComponent extends Component {
toggle() {
if (this.args.onToggle) {
this.args.onToggle();
}
}
}