-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(positioning): fix errors on invalid position
- Loading branch information
Showing
25 changed files
with
152 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
// RECOMMENDED | ||
import { AccordionModule } from 'ngx-bootstrap/accordion'; | ||
// or | ||
import { AccordionModule } from 'ngx-bootstrap'; | ||
|
||
@NgModule({ | ||
imports: [AccordionModule.forRoot(),...] | ||
imports: [ | ||
BrowserAnimationsModule, | ||
AccordionModule.forRoot(), | ||
... | ||
] | ||
}) | ||
export class AppModule(){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
// RECOMMENDED | ||
import { CollapseModule } from 'ngx-bootstrap/collapse'; | ||
// or | ||
import { CollapseModule } from 'ngx-bootstrap'; | ||
|
||
@NgModule({ | ||
imports: [CollapseModule.forRoot(),...] | ||
imports: [ | ||
BrowserAnimationsModule, | ||
CollapseModule.forRoot(), | ||
... | ||
] | ||
}) | ||
export class AppModule(){} |
10 changes: 5 additions & 5 deletions
10
demo/src/app/components/+popover/demos/placement/placement.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
popoverTitle="Popover on top" | ||
placement="top"> | ||
placement="top left top"> | ||
Popover on top | ||
</button> | ||
|
||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
popoverTitle="Popover on right" | ||
placement="right"> | ||
placement="auto right"> | ||
Popover on right | ||
</button> | ||
|
||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
popoverTitle="Popover auto" | ||
placement="auto"> | ||
placement="auto auto auto auto"> | ||
Popover auto | ||
</button> | ||
|
||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
popoverTitle="Popover on left" | ||
placement="left"> | ||
placement="left awtw4rta4wt"> | ||
Popover on left | ||
</button> | ||
|
||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
popoverTitle="Popover on bottom" | ||
placement="bottom"> | ||
placement="bottom start"> | ||
Popover on bottom | ||
</button> |
13 changes: 13 additions & 0 deletions
13
demo/src/app/components/+tooltip/demos/adaptive-position/adaptive-position.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<button type="button" class="btn btn-default btn-secondary mb-2" | ||
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
[adaptivePosition]="false" | ||
placement="top"> | ||
Tooltip on top | ||
</button> | ||
|
||
<button type="button" class="btn btn-default btn-secondary mb-2" | ||
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." | ||
[adaptivePosition]="false" | ||
placement="right"> | ||
Tooltip on right | ||
</button> |
7 changes: 7 additions & 0 deletions
7
demo/src/app/components/+tooltip/demos/adaptive-position/adaptive-position.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-tooltip-adaptive-position', | ||
templateUrl: './adaptive-position.html' | ||
}) | ||
export class DemoTooltipAdaptivePositionComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,5 @@ export interface Options { | |
enabled: boolean; | ||
}; | ||
}; | ||
allowedPositions?: string[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.