Skip to content

Commit 56a9a47

Browse files
committed
docs: update content
1 parent f520a78 commit 56a9a47

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

docs/content/components/carousel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ var carousel = new coreui.Carousel(myCarousel, {
414414
<code>getInstance</code>
415415
</td>
416416
<td>
417-
Static method which allows you to get the carousel instance associated to a DOM element, you can use it like this: <code>bootstrap.Carousel.getInstance(element)</code>
417+
Static method which allows you to get the carousel instance associated to a DOM element, you can use it like this: <code>coreui.Carousel.getInstance(element)</code>
418418
</td>
419419
</tr>
420420
<tr>
@@ -423,7 +423,7 @@ var carousel = new coreui.Carousel(myCarousel, {
423423
</td>
424424
<td>
425425
Static method which returns a carousel instance associated to a DOM element or create a new one in case it wasn't initialized.
426-
You can use it like this: <code>bootstrap.Carousel.getOrCreateInstance(element)</code>
426+
You can use it like this: <code>coreui.Carousel.getOrCreateInstance(element)</code>
427427
</td>
428428
</tr>
429429
</tbody>

docs/content/components/collapse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ var cuiCollapse = new coreui.Collapse(myCollapse, {
205205
<code>getInstance</code>
206206
</td>
207207
<td>
208-
Static method which allows you to get the collapse instance associated to a DOM element, you can use it like this: <code>bootstrap.Collapse.getInstance(element)</code>
208+
Static method which allows you to get the collapse instance associated to a DOM element, you can use it like this: <code>coreui.Collapse.getInstance(element)</code>
209209
</td>
210210
</tr>
211211
<tr>
@@ -214,7 +214,7 @@ var cuiCollapse = new coreui.Collapse(myCollapse, {
214214
</td>
215215
<td>
216216
Static method which returns a collapse instance associated to a DOM element or create a new one in case it wasn't initialized.
217-
You can use it like this: <code>bootstrap.Collapse.getOrCreateInstance(element)</code>
217+
You can use it like this: <code>coreui.Collapse.getOrCreateInstance(element)</code>
218218
</td>
219219
</tr>
220220
</tbody>

docs/content/components/dropdowns.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
10661066
#### Using function with `popperConfig`
10671067

10681068
```js
1069-
var dropdown = new bootstrap.Dropdown(element, {
1069+
var dropdown = new coreui.Dropdown(element, {
10701070
popperConfig: function (defaultBsPopperConfig) {
10711071
// var newPopperConfig = {...}
10721072
// use defaultBsPopperConfig if needed...
@@ -1120,7 +1120,7 @@ var dropdown = new bootstrap.Dropdown(element, {
11201120
<code>getInstance</code>
11211121
</td>
11221122
<td>
1123-
Static method which allows you to get the dropdown instance associated to a DOM element, you can use it like this: <code>bootstrap.Dropdown.getInstance(element)</code>
1123+
Static method which allows you to get the dropdown instance associated to a DOM element, you can use it like this: <code>coreui.Dropdown.getInstance(element)</code>
11241124
</td>
11251125
</tr>
11261126
<tr>
@@ -1129,7 +1129,7 @@ var dropdown = new bootstrap.Dropdown(element, {
11291129
</td>
11301130
<td>
11311131
Static method which returns a dropdown instance associated to a DOM element or create a new one in case it wasn't initialized.
1132-
You can use it like this: <code>bootstrap.Dropdown.getOrCreateInstance(element)</code>
1132+
You can use it like this: <code>coreui.Dropdown.getOrCreateInstance(element)</code>
11331133
</td>
11341134
</tr>
11351135
</tbody>

docs/content/components/list-group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ var tab = coreui.Tab.getInstance(triggerEl) // Returns a Bootstrap tab instance
476476

477477
```js
478478
var triggerEl = document.querySelector('#trigger')
479-
var tab = bootstrap.Tab.getOrCreateInstance(triggerEl) // Returns a Bootstrap tab instance
479+
var tab = coreui.Tab.getOrCreateInstance(triggerEl) // Returns a Bootstrap tab instance
480480
```
481481

482482
### Events

docs/content/components/navs-tabs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ You can activate individual tabs in several ways:
534534

535535
```js
536536
var triggerEl = document.querySelector('#myTab button[data-coreui-target="#profile"]')
537-
bootstrap.Tab.getInstance(triggerEl).show() // Select tab by name
537+
coreui.Tab.getInstance(triggerEl).show() // Select tab by name
538538

539539
var triggerFirstTabEl = document.querySelector('#myTab li:first-child button')
540-
bootstrap.Tab.getInstance(triggerFirstTabEl).show() // Select first tab
540+
coreui.Tab.getInstance(triggerFirstTabEl).show() // Select first tab
541541
```
542542

543543
### Fade effect
@@ -624,7 +624,7 @@ var tab = coreui.Tab.getInstance(triggerEl) // Returns a Bootstrap tab instance
624624

625625
```js
626626
var triggerEl = document.querySelector('#trigger')
627-
var tab = bootstrap.Tab.getOrCreateInstance(triggerEl) // Returns a Bootstrap tab instance
627+
var tab = coreui.Tab.getOrCreateInstance(triggerEl) // Returns a Bootstrap tab instance
628628
```
629629

630630
### Events

docs/content/components/offcanvas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Enable manually with:
205205
```js
206206
var offcanvasElementList = [].slice.call(document.querySelectorAll('.offcanvas'))
207207
var offcanvasList = offcanvasElementList.map(function (offcanvasEl) {
208-
return new bootstrap.Offcanvas(offcanvasEl)
208+
return new coreui.Offcanvas(offcanvasEl)
209209
})
210210
```
211211

@@ -233,7 +233,7 @@ You can create an offcanvas instance with the constructor, for example:
233233

234234
```js
235235
var myOffcanvas = document.getElementById('myOffcanvas')
236-
var bsOffcanvas = new bootstrap.Offcanvas(myOffcanvas)
236+
var bsOffcanvas = new coreui.Offcanvas(myOffcanvas)
237237
```
238238

239239
{{< bs-table "table" >}}

docs/content/components/popovers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Options for individual popovers can alternatively be specified through the use o
298298
#### Using function with `popperConfig`
299299

300300
```js
301-
var popover = new bootstrap.Popover(element, {
301+
var popover = new coreui.Popover(element, {
302302
popperConfig: function (defaultBsPopperConfig) {
303303
// var newPopperConfig = {...}
304304
// use defaultBsPopperConfig if needed...
@@ -393,7 +393,7 @@ var popover = coreui.Popover.getInstance(exampleTriggerEl) // Returns a Bootstra
393393

394394
```js
395395
var exampleTriggerEl = document.getElementById('example')
396-
var popover = bootstrap.Popover.getOrCreateInstance(exampleTriggerEl) // Returns a Bootstrap popover instance
396+
var popover = coreui.Popover.getOrCreateInstance(exampleTriggerEl) // Returns a Bootstrap popover instance
397397
```
398398

399399
### Events

docs/content/components/scrollspy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ var scrollSpy = coreui.ScrollSpy.getInstance(scrollSpyContentEl) // Returns a Bo
304304

305305
```js
306306
var scrollSpyContentEl = document.getElementById('content')
307-
var scrollSpy = bootstrap.ScrollSpy.getOrCreateInstance(scrollSpyContentEl) // Returns a Bootstrap scrollspy instance
307+
var scrollSpy = coreui.ScrollSpy.getOrCreateInstance(scrollSpyContentEl) // Returns a Bootstrap scrollspy instance
308308
```
309309

310310
### Options

docs/content/components/toasts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var toastTrigger = document.getElementById('liveToastBtn')
9292
var toastLiveExample = document.getElementById('liveToast')
9393
if (toastTrigger) {
9494
toastTrigger.addEventListener('click', function () {
95-
var toast = new bootstrap.Toast(toastLiveExample)
95+
var toast = new coreui.Toast(toastLiveExample)
9696

9797
toast.show()
9898
})
@@ -412,7 +412,7 @@ toast.dispose()
412412

413413
```js
414414
var myToastEl = document.getElementById('myToastEl')
415-
var myToast = bootstrap.Toast.getInstance(myToastEl) // Returns a Bootstrap toast instance
415+
var myToast = coreui.Toast.getInstance(myToastEl) // Returns a Bootstrap toast instance
416416
```
417417

418418
#### getOrCreateInstance
@@ -421,7 +421,7 @@ var myToast = bootstrap.Toast.getInstance(myToastEl) // Returns a Bootstrap toas
421421

422422
```js
423423
var myToastEl = document.getElementById('myToastEl')
424-
var myToast = bootstrap.Toast.getOrCreateInstance(myToastEl) // Returns a Bootstrap toast instance
424+
var myToast = coreui.Toast.getOrCreateInstance(myToastEl) // Returns a Bootstrap toast instance
425425
```
426426

427427
### Events

docs/content/components/tooltips.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Options for individual tooltips can alternatively be specified through the use o
323323
#### Using function with `popperConfig`
324324

325325
```js
326-
var tooltip = new bootstrap.Tooltip(element, {
326+
var tooltip = new coreui.Tooltip(element, {
327327
popperConfig: function (defaultBsPopperConfig) {
328328
// var newPopperConfig = {...}
329329
// use defaultBsPopperConfig if needed...
@@ -417,7 +417,7 @@ var tooltip = coreui.Tooltip.getInstance(exampleTriggerEl) // Returns a Bootstra
417417

418418
```js
419419
var exampleTriggerEl = document.getElementById('example')
420-
var tooltip = bootstrap.Tooltip.getOrCreateInstance(exampleTriggerEl) // Returns a Bootstrap tooltip instance
420+
var tooltip = coreui.Tooltip.getOrCreateInstance(exampleTriggerEl) // Returns a Bootstrap tooltip instance
421421
```
422422

423423
### Events

0 commit comments

Comments
 (0)