Skip to content

Commit

Permalink
docs(tooltip): rename demo Four directions to Placement (#3765)
Browse files Browse the repository at this point in the history
  • Loading branch information
svetoldo4444ka authored and valorkin committed Feb 22, 2018
1 parent 22ce0a7 commit eea96c1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions demo/src/app/components/+tooltip/demos/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DemoTooltipBasicComponent } from './basic/basic';
import { DemoTooltipFourDirectionsComponent } from './four-directions/four-directions';
import { DemoTooltipPlacementComponent } from './placement/placement';
import { DemoTooltipDismissComponent } from './dismiss/dismiss';
import { DemoTooltipDynamicComponent } from './dynamic/dynamic';
import { DemoTooltipConfigComponent } from './config/config';
Expand All @@ -14,7 +14,7 @@ import { DemoTooltipDelayComponent } from './delay/delay';

export const DEMO_COMPONENTS = [
DemoTooltipBasicComponent,
DemoTooltipFourDirectionsComponent,
DemoTooltipPlacementComponent,
DemoTooltipDismissComponent,
DemoTooltipDynamicComponent,
DemoTooltipDynamicHtmlComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<button type="button" class="btn btn-default btn-secondary"
<button type="button" class="btn btn-default btn-secondary mb-2"
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
placement="top">
Tooltip on top
</button>

<button type="button" class="btn btn-default btn-secondary"
<button type="button" class="btn btn-default btn-secondary mb-2"
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
placement="right">
Tooltip on right
</button>

<button type="button" class="btn btn-default btn-secondary"
<button type="button" class="btn btn-default btn-secondary mb-2"
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
placement="auto">
Tooltip auto
</button>

<button type="button" class="btn btn-default btn-secondary"
<button type="button" class="btn btn-default btn-secondary mb-2"
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
placement="left">
Tooltip on left
</button>

<button type="button" class="btn btn-default btn-secondary"
<button type="button" class="btn btn-default btn-secondary mb-2"
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
placement="bottom">
Tooltip on bottom
Expand Down
7 changes: 7 additions & 0 deletions demo/src/app/components/+tooltip/demos/placement/placement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Component } from '@angular/core';

@Component({
selector: 'demo-tooltip-placement',
templateUrl: './placement.html'
})
export class DemoTooltipPlacementComponent {}
14 changes: 7 additions & 7 deletions demo/src/app/components/+tooltip/tooltip-section.list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DemoTooltipBasicComponent } from './demos/basic/basic';
import { DemoTooltipFourDirectionsComponent } from './demos/four-directions/four-directions';
import { DemoTooltipPlacementComponent } from './demos/placement/placement';
import { DemoTooltipDismissComponent } from './demos/dismiss/dismiss';
import { DemoTooltipDynamicComponent } from './demos/dynamic/dynamic';
import { DemoTooltipDynamicHtmlComponent } from './demos/dynamic-html/dynamic-html';
Expand Down Expand Up @@ -44,13 +44,13 @@ export const demoComponentContent: ContentSection[] = [
outlet: DemoTooltipBasicComponent
},
{
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'),
title: 'Placement',
anchor: 'placement',
component: require('!!raw-loader?lang=typescript!./demos/placement/placement.ts'),
html: require('!!raw-loader?lang=markup!./demos/placement/placement.html'),
description: `<p>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.</p>`,
outlet: DemoTooltipFourDirectionsComponent
Besides that, auto option may be used to detect a position that fits the component on the screen.</p>`,
outlet: DemoTooltipPlacementComponent
},
{
title: 'Dismiss on next click',
Expand Down

0 comments on commit eea96c1

Please sign in to comment.