import { DemoPopoverBasicComponent } from './demos/basic/basic'; import { DemoPopoverFourDirectionsComponent } from './demos/four-directions/four-directions'; import { DemoPopoverDismissComponent } from './demos/dismiss/dismiss'; import { DemoPopoverDynamicComponent } from './demos/dynamic/dynamic'; import { DemoPopoverDynamicHtmlComponent } from './demos/dynamic-html/dynamic-html'; import { DemoPopoverContainerComponent } from './demos/container/container'; import { DemoPopoverConfigComponent } from './demos/config/config'; import { DemoPopoverOutsideClickComponent } from './demos/outside-click/outside-click'; import { DemoPopoverTriggersCustomComponent } from './demos/triggers-custom/triggers-custom'; import { DemoPopoverTriggersManualComponent } from './demos/triggers-manual/triggers-manual'; import { DemoPopoverStylingLocalComponent } from './demos/styling-local/styling-local'; import { DemoPopoverClassComponent } from './demos/class/class'; import { DemoPopoverStylingGlobalComponent } from './demos/styling-global/styling-global'; import { ContentSection } from '../../docs/models/content-section.model'; import { DemoTopSectionComponent } from '../../docs/demo-section-components/demo-top-section/index'; import { ExamplesComponent } from '../../docs/demo-section-components/demo-examples-section/index'; import { ApiSectionsComponent } from '../../docs/demo-section-components/demo-api-section/index'; import { NgApiDocComponent, NgApiDocConfigComponent } from '../../docs/api-docs'; export const demoComponentContent: ContentSection[] = [ { name: 'Usage', anchor: 'usage', outlet: DemoTopSectionComponent, content: { doc: require('html-loader!markdown-loader!./docs/usage.md') } }, { name: 'Examples', anchor: 'examples', outlet: ExamplesComponent, content: [ { title: 'Basic', anchor: 'basic', component: require('!!raw-loader?lang=typescript!./demos/basic/basic.ts'), html: require('!!raw-loader?lang=markup!./demos/basic/basic.html'), outlet: DemoPopoverBasicComponent }, { title: 'Four directions', anchor: 'four-directions', component: require('!!raw-loader?lang=typescript!./demos/four-directions/four-directions.ts'), html: require('!!raw-loader?lang=markup!./demos/four-directions/four-directions.html'), description: `
Four positioning options are available: top, right, bottom, and left aligned. Besides that, auto option may be used to detect a position that fits the component on screen.
`, outlet: DemoPopoverFourDirectionsComponent }, { title: 'Dismiss on next click', anchor: 'popover-dismiss', component: require('!!raw-loader?lang=typescript!./demos/dismiss/dismiss.ts'), html: require('!!raw-loader?lang=markup!./demos/dismiss/dismiss.html'), description: `Use the focus trigger to dismiss popovers on the next click that the
user makes.
Popover content can contain any html template. Just create <template
#myId> with any html allowed by Angular, and provide template ref (#myId)
as popover content.
By using small trick you can display any dynamic html, which you got from ajax request for example.
`, outlet: DemoPopoverDynamicHtmlComponent }, { title: 'Append to body', anchor: 'container-body', component: require('!!raw-loader?lang=typescript!./demos/container/container.ts'), html: require('!!raw-loader?lang=markup!./demos/container/container.html'), description: `When you have some styles on a parent element that interfere with a popover,
you’ll want to specify a container="body" so that the popover’s HTML will be
appended to body. This will help to avoid rendering problems in more complex components
(like our input groups, button groups, etc) or inside elements with overflow: hidden