Skip to content

Commit 77c2f35

Browse files
committed
docs: update content
1 parent 0510c49 commit 77c2f35

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

docs/assets/js/application.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,63 @@
117117
})
118118
}
119119

120+
document.querySelectorAll('.btn-loading')
121+
.forEach(function (button) {
122+
new coreui.LoadingButton(button)
123+
button.addEventListener('click', function (event) {
124+
var myBtn = coreui.LoadingButton.getInstance(event.target)
125+
myBtn.start()
126+
})
127+
})
128+
129+
var myMultiSelect = document.getElementById('multiSelect')
130+
131+
if (myMultiSelect) {
132+
// eslint-disable-next-line no-unused-vars
133+
var cuiMultiSelect = new coreui.MultiSelect(myMultiSelect, {
134+
name: 'multiSelect',
135+
options: [
136+
{
137+
value: 0,
138+
text: 'Angular'
139+
},
140+
{
141+
value: 1,
142+
text: 'Bootstrap',
143+
selected: true
144+
},
145+
{
146+
value: 2,
147+
text: 'React.js',
148+
selected: true
149+
},
150+
{
151+
value: 3,
152+
text: 'Vue.js'
153+
},
154+
{
155+
label: 'backend',
156+
options: [
157+
{
158+
value: 4,
159+
text: 'Django'
160+
},
161+
{
162+
value: 5,
163+
text: 'Laravel'
164+
},
165+
{
166+
value: 6,
167+
text: 'Node.js',
168+
selected: true
169+
}
170+
]
171+
}
172+
],
173+
search: true
174+
})
175+
}
176+
120177
// Insert copy to clipboard button before .highlight
121178
var btnHtml = '<div class="docs-clipboard"><button type="button" class="btn-clipboard btn btn-ghost-primary" title="Copy to clipboard"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><polygon fill="var(--ci-primary-color, currentColor)" points="408 432 376 432 376 464 112 464 112 136 144 136 144 104 80 104 80 496 408 496 408 432" class="ci-primary"/><path fill="var(--ci-primary-color, currentColor)" d="M176,16V400H496V153.373L358.627,16ZM464,368H208V48H312V200H464Zm0-200H344V48h1.372L464,166.627Z" class="ci-primary"/></svg></button></div>'
122179
document.querySelectorAll('div.highlight')

docs/content/4.1/forms/multi-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ toc: true
6464
<select id="multiSelect"></select>
6565

6666
<script type="text/javascript">
67-
var myMultiSelect = document.getElementById('multiSelect')
67+
var myMultiSelect = document.querySelector('#multiSelect')
6868
var cuiMultiSelect = new coreui.MultiSelect(myMultiSelect, {
6969
options: [
7070
{

docs/data/sidebar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
- title: Form Mask
6666
badge:
6767
color: warning
68-
text: WIP v4.1
68+
text: WIP v4.2
6969
disabled: true
7070
- title: Date Range Picker
7171
badge:
7272
color: warning
73-
text: WIP v4.1
73+
text: WIP v4.2
7474
disabled: true
7575
- title: Layout
7676
- title: Validation

0 commit comments

Comments
 (0)