BlockUI can either block other components or the whole page.
+
+
+
+
+
Document
+
+
+
+
+
Panel
+
+
+
+
+
+
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
+ His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
+ Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
+ kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/blockui/BlockUIDoc.vue b/src/views/blockui/BlockUIDoc.vue
new file mode 100644
index 000000000..c97281b2b
--- /dev/null
+++ b/src/views/blockui/BlockUIDoc.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
Import
+
+import BlockUI from 'primevue/blockui';
+
+
+
Getting Started
+
BlockUI is controlled using the blocked property, by default target element to block is the child component. In example below, panel gets blocked
+ with a mask when blockedPanel is enabled and gets unblock when the bound variable is set to false.
+
Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.
+
+
+
+
+
Name
+
Type
+
Default
+
Description
+
+
+
+
+
blocked
+
array
+
null
+
Controls the blocked state.
+
+
+
fullscreen
+
menuitem
+
null
+
When enabled, the whole document gets blocked.
+
+
+
baseZIndex
+
number
+
0
+
Base zIndex value to use in layering.
+
+
+
autoZIndex
+
boolean
+
true
+
Whether to automatically manage layering.
+
+
+
+
+
+
Events
+
+
+
+
+
Name
+
Parameters
+
Description
+
+
+
+
+
block
+
-
+
Fired when the element gets blocked.
+
+
+
show
+
-
+
Fired when the element gets unblocked.
+
+
+
+
+
+
Styling
+
Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+
Name
+
Element
+
+
+
+
+
p-blockui
+
Mask element.
+
+
+
p-blockui-document
+
Mask element in full screen mode.
+
+
+
+
+
+
Dependencies
+
None.
+
+
+
+
+ View on GitHub
+
+
+<h3>Document</h3>
+<BlockUI :blocked="blockedDocument" :fullScreen="true"></BlockUI>
+
+<Button type="button" label="Block" @click="blockDocument()"></Button>
+
+<h3>Panel</h3>
+<Button type="button" label="Block" @click="blockPanel()"></Button>
+<Button type="button" label="Unblock" @click="unblockPanel()"></Button>
+
+<BlockUI :blocked="blockedPanel">
+ <Panel header="Godfather I" style="margin-top: 20px">
+ <p>The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
+ His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
+ Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
+ kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.</p>
+ </Panel>
+</BlockUI>
+
+
+
+export default {
+ data() {
+ return {
+ blockedPanel: false,
+ blockedDocument: false
+ }
+ },
+ methods: {
+ blockDocument() {
+ this.blockedDocument = true;
+
+ setTimeout(() => {
+ this.blockedDocument = false;
+ }, 3000);
+ },
+ blockPanel() {
+ this.blockedPanel = true;
+ },
+ unblockPanel() {
+ this.blockedPanel = false;
+ }
+ }
+}
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/breadcrumb/BreadcrumbDoc.vue b/src/views/breadcrumb/BreadcrumbDoc.vue
index d01d89499..7d77b7510 100644
--- a/src/views/breadcrumb/BreadcrumbDoc.vue
+++ b/src/views/breadcrumb/BreadcrumbDoc.vue
@@ -66,7 +66,7 @@ export default {
Styling
-
Following is the list of structural style classes, for theming classes visit theming page.
+
Following is the list of structural style classes, for theming classes visit theming page.