ng-auto-position 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -115,7 +115,11 @@ HTML
115
115
  ```html
116
116
  <button id="actionsBtn">Actions</button>
117
117
 
118
- <div autoPositionElement referenceElementId="actionsBtn" scrollableSelector=".menu-items" class="dropdown">
118
+ <div
119
+ autoPositionElement
120
+ referenceElementId="actionsBtn"
121
+ scrollableSelector=".menu-items"
122
+ class="dropdown">
119
123
  <div class="menu-items"></div>
120
124
  </div>
121
125
  ```
@@ -135,7 +139,13 @@ Prevents the user from scrolling the background while the popup is active.
135
139
  HTML
136
140
 
137
141
  ```html
138
- <div autoPositionElement referenceElementId="menuBtn" [hideScrollTargets]="['body', '.layout-container']" class="dropdown">Menu content</div>
142
+ <div
143
+ autoPositionElement
144
+ referenceElementId="menuBtn"
145
+ [hideScrollTargets]="['body', '.layout-container']"
146
+ class="dropdown">
147
+ Menu content
148
+ </div>
139
149
  ```
140
150
 
141
151
  ---
@@ -159,7 +169,7 @@ HTML
159
169
  TypeScript
160
170
 
161
171
  ```typescript
162
- import { AutoPositionElementDirective } from "@roshan-ng/ng-auto-position";
172
+ import { AutoPositionElementDirective } from "ng-auto-position";
163
173
 
164
174
  @Component({
165
175
  standalone: true,
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-auto-position",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Angular directive for auto positioning dropdowns and popovers",
5
5
  "dependencies": {
6
6
  "@angular/animations": "^17.3.0",
Binary file