Add positioning docs
Browse files- index.html +6 -3
- readme.md +4 -1
index.html
CHANGED
@@ -127,8 +127,8 @@ driver.highlight({
|
|
127 |
|
128 |
<div id="single-element-with-popover-position" class="section__example">
|
129 |
<h4>Popover Positioning</h4>
|
130 |
-
<p>You can also, change the position of the popover to be either <code>left</code>, <code>top</code>,
|
131 |
-
<code>right</code> or <code>bottom</code>.</p>
|
132 |
<a href="#" class="btn__run-demo" id="run-single-element-with-popover-position">Show Demo</a>
|
133 |
<pre><code class="javascript">const driver = new Driver();
|
134 |
driver.highlight({
|
@@ -136,7 +136,10 @@ driver.highlight({
|
|
136 |
popover: {
|
137 |
title: 'Title for the Popover',
|
138 |
description: 'Description for it',
|
139 |
-
position
|
|
|
|
|
|
|
140 |
}
|
141 |
});
|
142 |
</code></pre>
|
|
|
127 |
|
128 |
<div id="single-element-with-popover-position" class="section__example">
|
129 |
<h4>Popover Positioning</h4>
|
130 |
+
<p>You can also, change the position of the popover to be either <code>left</code>, <code>left-center</code>, <code>left-bottom</code>, <code>top</code>, <code>top-center</code>, <code>top-right</code>,
|
131 |
+
<code>right</code>, <code>right-center</code>, <code>right-bottom</code> or <code>bottom</code>, <code>bottom-center</code>, <code>bottom-right</code>.</p>
|
132 |
<a href="#" class="btn__run-demo" id="run-single-element-with-popover-position">Show Demo</a>
|
133 |
<pre><code class="javascript">const driver = new Driver();
|
134 |
driver.highlight({
|
|
|
136 |
popover: {
|
137 |
title: 'Title for the Popover',
|
138 |
description: 'Description for it',
|
139 |
+
// position can be left, left-center, left-bottom, top,
|
140 |
+
// top-center, top-right, right, right-center, right-bottom,
|
141 |
+
// bottom, bottom-center, bottom-right
|
142 |
+
position: 'left',
|
143 |
}
|
144 |
});
|
145 |
</code></pre>
|
readme.md
CHANGED
@@ -101,7 +101,10 @@ driver.highlight({
|
|
101 |
popover: {
|
102 |
title: 'Title for the Popover',
|
103 |
description: 'Description for it',
|
104 |
-
position
|
|
|
|
|
|
|
105 |
}
|
106 |
});
|
107 |
```
|
|
|
101 |
popover: {
|
102 |
title: 'Title for the Popover',
|
103 |
description: 'Description for it',
|
104 |
+
// position can be left, left-center, left-bottom, top,
|
105 |
+
// top-center, top-right, right, right-center, right-bottom,
|
106 |
+
// bottom, bottom-center, bottom-right
|
107 |
+
position: 'left',
|
108 |
}
|
109 |
});
|
110 |
```
|