API Docs for: 0.25.0
Show:

File: addon/components/search-help-modal/component.js

  1. import Ember from 'ember';
  2. import layout from './template';
  3.  
  4. /**
  5. * Modal that provides examples and explanation of Lucene Search syntax
  6. *
  7. * ```handlebars
  8. * {{search-help-modal
  9. * isOpen=isOpen
  10. * }}
  11. * ```
  12. * @class search-help-modal
  13. */
  14. export default Ember.Component.extend({
  15. layout,
  16. isOpen: false,
  17. init() {
  18. this._super(...arguments);
  19. this.set('currentPath', `${window.location.origin}${window.location.pathname}`);
  20. },
  21. actions: {
  22. toggleHelpModal() {
  23. this.toggleProperty('isOpen');
  24. },
  25. }
  26. });
  27.