Dummy
Bootstrap 5 Dummy plugin
Dummy plugin creates placeholder content for accelerated building and testing your frontend templates.
Responsive Dummy plugin built with the latest Bootstrap 5. Plenty of implementation examples such as images, lists, tables, and much more.Note: Read the API tab to find all available options and advanced customization
Note: Currently, the plugin is only compatible with the basic MDB package imported in UMD format. More about import MDB formats.
Create Dummy component for an element by adding data-mdb-dummy-init
attribute to it. Depending on the
base element, different Dummies will be created. For most of the HTML tags default Dummy is
Text.
To explicitly create specific Dummy add proper data-mdb-
attribute to element with
data-mdb-dummy-init
attribute.
Text
Create Dummy Text by adding data-mdb-dummy-text
to element. To create text with
custom length add value of desired length to the attribute. Change text color with
data-mdb-text-color
attribute.
- Implicitly generated text:
- Revoted postgenial s
- Explicitly generated text with 40 characters length:
- Imprudently unexported shaksperian menac
- Text with custom color:
- Innutritious prejudg
Image
Create Dummy Image by adding data-mdb-dummy-img
to element.
Default
By default Dummy Image is created with size 150x150px and grey background
Size
Change Dummy Image size with data-mdb-dummy-img="width value, height value"
.
Height value is optional, when omitted square image will be created.
Make Dummy Image inherit full size of its container with
data-mdb-dummy-img="100%,100%"
.
Note: It will only work with container having explicitly set width and height.
Setting data-mdb-dummy-img="100%"
will create square image with width and
height of its container width
Text
Add text to Dummy Image with data-mdb-dummy-img-text
attribute. Pass any value
to attrtibute to set your own text or leave empty to create Dummy Text inside image. Set
length of Dummy Text with data-mdb-dummy-text="text length value"
Colours
Set the image background color using data-mdb-color
and the text color with
data-mdb-dummy-text-color
. Note that Dummy Image only accepts color values in hexadecimal format (hex).
List
Create Dummy List by adding data-mdb-dummy-list
to ul
or
ol
element.
Default
By default, Dummy List will generate a list with 5 Dummy Text elements.
- Candlenut folia fact
- Sandarac comedical a
- Alloplasmatic diaped
- Burletta newsbeat un
- Ungossiping inculpat
Size
Change Dummy List length with data-mdb-dummy-list="length value"
and length of
Dummy Text element with data-mdb-dummy-text="text length value"
.
- Revoted battue cataplane crook
- Monopsony totable hyporight ca
- Balkanised rekindle cated real
- Keswick underyoke enrober unab
- Valorise shaksperian intertraf
- Soc nitrobenzene cated habitud
- Gavin strutting modulate biosp
- Chromoplasmic spacious azerbai
- Chromic vaporimeter postfebril
- Rareripe modulate snippiness a Swagman tribunitial kline disc
Table
Create Dummy Table by adding the data-mdb-dummy-table
to the table
element.
Default
By default Dummy Table will generate a table with 5 rows and 5 columns.
Diseasing stirpicult | Diseasing stirpicult | Diseasing stirpicult | Diseasing stirpicult | Diseasing stirpicult |
---|---|---|---|---|
Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po |
Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po |
Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po |
Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po |
Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po | Dido unillusioned po |
Size
Adjust the size of Dummy Table rows and columns using
data-mdb-dummy-table="rows length value, columns length value"
. Modify the length of the default
Dummy Text with data-mdb-dummy-text="text length value"
Desulfuriz | Desulfuriz | Desulfuriz | Desulfuriz | Desulfuriz |
---|---|---|---|---|
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Frankfurte | Frankfurte | Frankfurte | Frankfurte | Frankfurte |
Copy
Create a Dummy Copy of any existing element with
data-mdb-dummy-copy="existing element selector"
Original element
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Dummy Copy element
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Repeat
Dummy Repeat will duplicate the element on which
data-mdb-dummy-repeat="number of repetitions"
was invoked.
-
Jane Smith
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti molestiae inventore, quis omnis est, asperiores repellat dignissimos blanditiis placeat ad eveniet deserunt temporibus explicabo voluptatem tenetur? Consequatur totam maiores eum.
-
Jane Smith
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti molestiae inventore, quis omnis est, asperiores repellat dignissimos blanditiis placeat ad eveniet deserunt temporibus explicabo voluptatem tenetur? Consequatur totam maiores eum.
-
Jane Smith
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti molestiae inventore, quis omnis est, asperiores repellat dignissimos blanditiis placeat ad eveniet deserunt temporibus explicabo voluptatem tenetur? Consequatur totam maiores eum.
-
Jane Smith
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti molestiae inventore, quis omnis est, asperiores repellat dignissimos blanditiis placeat ad eveniet deserunt temporibus explicabo voluptatem tenetur? Consequatur totam maiores eum.
Any content inside Dummy Repeat can be created from Dummy elements.
-
Barquisimeto di
Perugino stirpiculture gasholder pfitzner preinstructional monopsony totable purposed crackly homoeo
-
Barquisimeto di
Perugino stirpiculture gasholder pfitzner preinstructional monopsony totable purposed crackly homoeo
-
Barquisimeto di
Perugino stirpiculture gasholder pfitzner preinstructional monopsony totable purposed crackly homoeo
-
Barquisimeto di
Perugino stirpiculture gasholder pfitzner preinstructional monopsony totable purposed crackly homoeo
Template
Dummy Template can generate a single Dummy element or an entire template based on the tag elements
passed as string into data-mdb-dummy-template
.
Default
By default Dummy Template will create a template of
h1,p,table,h2,p,form,blockquote,img,ul
tags.
Realizable dauk keswick chromic gyges atomize revaccinate unfree lineamental pfitzner cloverleaf col
Conveyor unrevoked bridelike candlenut melchizedek unaccustomed predictated prejudgement postfebrile
Terminism heedfulnes | Terminism heedfulnes | Terminism heedfulnes | Terminism heedfulnes | Terminism heedfulnes |
---|---|---|---|---|
Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse |
Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse |
Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse |
Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse |
Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse | Camaraderie reperuse |
Dauk havel unincludible preelect canton disembowelment canton unexported typikon postfebrile sandara
Cadman inescapableness dido reidentify reidentify plesiosaur pseudopolitical biosphere carracci reap
Bridelike cudbear yokel reamendment intertrafficki
- Outraved norbert mds
- Habitudinal leucosis
- Instilment gutterlik
- Intertrafficking hav
- Exophthalmos aeaea t
Layouts
Combine Dummy Template with other Dummy elements and MDBootstrap components to create layouts in no time!
Strutting farraginous abbreviator stirpiculture brunetness snippiness airwoman impanel fluidally doo
Airwoman multigravida gutterlike invigorated jurisp desulfurization preinstructional rareripe snakew
Trippingly eulis equ
Dubonnet leucosis nonexcavation horologe conveyor
- Assidaean stambul ov
- Mirkier conveyor mil
- Actinolitic duopoly
- Alfur inculpatory tr
- Punish actinolitic m
Kenny factorize ester bootie purposed swagman duopoly menace trippingly diapedesis pseudopolitical u
Unacetic realizable semifrontier stimulatingly sanctity drawability holism irritate saffian holophyte decampment premeditatingly monopsony revaccinate airwoman balkanised keswick nonexcavation superextreme immorally folia drawability cadman outthrow horologe trippingly dubonnet havel anatolian purposed chromic study punish saffian bivalvular filbert fluffier southernwood clark typikon sanderling tribunitial gruesomeness reoperate gavin peduncle terminism cadman reappearance precociousness clark
Unacetic realizable semifrontier stimulatingly sanctity drawability holism irritate saffian holophyte decampment premeditatingly monopsony revaccinate airwoman balkanised keswick nonexcavation superextreme immorally folia drawability cadman outthrow horologe trippingly dubonnet havel anatolian purposed chromic study punish saffian bivalvular filbert fluffier southernwood clark typikon sanderling tribunitial gruesomeness reoperate gavin peduncle terminism cadman reappearance precociousness clark
Dummy - API
Import
Usage
Via data attributes
Using the Datatable plugin doesn't require any additional JavaScript code - simply add
data-mdb-dummy-init
attribute to
base element
and use other data attributes to set all options.
Via JavaScript
Via jQuery
Note: By default, MDB does not include jQuery and you have to add it to the project on your own.
Options
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to
data-mdb-
, as in data-mdb-dummy-text=""
.
Name | Type | Default | Description |
---|---|---|---|
dummyText
|
Number | null | 20 |
Creates Dummy Text of given length on element. |
dummyImg
|
String | null | '150' |
Creates Dummy Img of given size. |
dummyList
|
Number | null | 5 |
Creates Dummy List with given number of list elements |
dummyTable
|
String | null | '5,5' |
Creates Dummy Table with given rows and cols number |
dummyCopy
|
String | null | null |
Creates copy of element based on given selector |
dummyRepeat
|
Number | null | 1 |
Creates given number of copies of element to which dummyRepeat was attached. Allows to repeat elements created by other Dummy methods. |
dummyTemplate
|
String | null | 'h1,p,table,h2,p, form,blockquote,img,ul' |
Creates template from given string of HTML tag elements |
dummyColor
|
String | null | null |
Defines color of Dummy Image background. Allows colours only in
hex format
|
dummyTextColor
|
String | null | null |
Defines color of Dummy Text |
dummyImgText
|
String | null | null |
Defines text of Dummy Text inside Dummy Image |
Methods
Name | Parameters | Description | Example |
---|---|---|---|
dispose
|
Disposes a Dummy instance. |
instance.dispose()
|
|
init
|
Initializes dummy for dynamically added element. |
instance.init()
|
|
getInstance
|
element | Static method which allows to get the dummy instance associated with a DOM element. |
Dummy.getInstance(dummyElement)
|