2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>The element to block should be placed as a child of BlockUI and <i>blocked</i> property is required to control the state.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="mb-4">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
|
|
|
<Button label="Unblock" @click="blocked = false"></Button>
|
|
|
|
</div>
|
|
|
|
<BlockUI :blocked="blocked">
|
|
|
|
<Panel header="Basic">
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
</Panel>
|
|
|
|
</BlockUI>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
blocked: false,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="mb-4">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
|
|
|
<Button label="Unblock" @click="blocked = false"></Button>
|
|
|
|
</div>
|
|
|
|
<BlockUI :blocked="blocked">
|
|
|
|
<Panel header="Basic">
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
</Panel>
|
2023-10-15 09:38:39 +00:00
|
|
|
</BlockUI>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="mb-4">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
|
|
|
<Button label="Unblock" @click="blocked = false"></Button>
|
|
|
|
</div>
|
|
|
|
<BlockUI :blocked="blocked">
|
|
|
|
<Panel header="Basic">
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
</Panel>
|
|
|
|
</BlockUI>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
blocked: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="mb-4">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
|
|
|
<Button label="Unblock" @click="blocked = false"></Button>
|
|
|
|
</div>
|
|
|
|
<BlockUI :blocked="blocked">
|
|
|
|
<Panel header="Basic">
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
</Panel>
|
|
|
|
</BlockUI>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const blocked = ref(false);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|