Skip to content

Commit c7d908e

Browse files
author
Mateusz Łubianka
committed
Add Basic Modal snippet
1 parent 72a3e5c commit c7d908e

File tree

3 files changed

+51
-8
lines changed

3 files changed

+51
-8
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ With MDB-VSCode-snippets you can use shortcuts instead of writing whole code.
5555
- [Inputs](#inputs)
5656
- [Slider](#slider)
5757
- [Switch](#switch)
58+
- Modals
59+
- [Basic Modals](#basic-modals)
5860

5961

6062
#### General
@@ -179,20 +181,22 @@ Name of component | Shortcut
179181
------------ | -------------
180182
Material Switch | !mdb-switch
181183

184+
#### Basic Modals
185+
Name of component | Shortcut
186+
------------ | -------------
187+
Basic Example | !mdb-modal
188+
189+
-----------------------------------------------------------------------------------------------------------
190+
191+
## Versions
192+
182193
### 1.1.0
183194
New snippets for MDB components.
184195
### 1.0.0
185196
Initial release of MDBootstrap-VSCode-snippets.
186197

187198
-----------------------------------------------------------------------------------------------------------
188199

189-
### Instalation
190-
1. Launch Visual Studio Code
191-
2. Go to extensions tab - Ctrl-Shift-X (Windows, Linux) or Cmd-Shift-X (OSX)
192-
3. Search for 'mdbsnippets'
193-
4. Choose the extension
194-
5. Install extension and reload Visual Studio Code
195-
196200
### For more information
197201
- Visit [MDBootstrap Page](https://mdbootstrap.com/).
198202
- Get [MDB FREE](https://mdbootstrap.com/docs/jquery/getting-started/download/).

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,14 @@
9595
{
9696
"language": "html",
9797
"path": "./snippets/html/components/panels.json"
98-
},{
98+
},
99+
{
99100
"language": "html",
100101
"path": "./snippets/html/components/alerts.json"
102+
},
103+
{
104+
"language": "html",
105+
"path": "./snippets/html/modals/basic-examples.json"
101106
}
102107
]
103108
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"MDBootstrap Basic Modal": {
3+
"prefix": "!mdb-modal",
4+
"body": [
5+
"<!-- Button trigger modal -->",
6+
"<button type=\"button\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#basicExampleModal\">",
7+
" Launch demo modal",
8+
"</button>",
9+
"",
10+
"<!-- Modal -->",
11+
"<div class=\"modal fade\" id=\"basicExampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">",
12+
" <div class=\"modal-dialog\" role=\"document\">",
13+
" <div class=\"modal-content\">",
14+
" <div class=\"modal-header\">",
15+
" <h5 class=\"modal-title\" id=\"exampleModalLabel\">Modal title</h5>",
16+
" <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">",
17+
" <span aria-hidden=\"true\">&times;</span>",
18+
" </button>",
19+
" </div>",
20+
" <div class=\"modal-body\">",
21+
" ...",
22+
" </div>",
23+
" <div class=\"modal-footer\">",
24+
" <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>",
25+
" <button type=\"button\" class=\"btn btn-primary\">Save changes</button>",
26+
" </div>",
27+
" </div>",
28+
" </div>",
29+
"</div>"
30+
],
31+
"description": "Creates MDbootstrap Basic Modal"
32+
}
33+
34+
}

0 commit comments

Comments
 (0)