Dialogs
ipl-sidebar
View Source
template
<ipl-sidebar
v-model:is-open="sidebarOpen"
:persistent="persistent"
>
<div class="width-capped-content">
<ipl-space
color="light"
class="vertical-layout"
>
<div>Hello!</div>
<ipl-button
label="Button!"
/>
<ipl-button
label="Close sidebar"
color="red"
@click="sidebarOpen = false"
/>
</ipl-space>
</div>
</ipl-sidebar>
<ipl-button
label="Open sidebar"
@click="sidebarOpen = true"
/>View Source
template
<ipl-sidebar
v-model:is-open="sidebarOpen"
:persistent="persistent"
>
<template #header>
<ipl-dialog-title
title="Test Sidebar"
@close="sidebarOpen = false"
/>
</template>
<div class="width-capped-content">
<ipl-space
color="light"
class="vertical-layout"
>
<div>Hello!</div>
<ipl-button
label="Button!"
/>
<ipl-small-toggle
v-model="doOverflow"
label="Overflow?"
/>
<div v-if="doOverflow">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</ipl-space>
</div>
<template #footer>
<div class="width-capped-content">
<ipl-button
label="Close sidebar"
color="red"
@click="sidebarOpen = false"
/>
</div>
</template>
</ipl-sidebar>
<ipl-button
label="Open sidebar (Header & footer)"
@click="sidebarOpen = true"
/>ipl-dialog
View Source
template
<ipl-dialog
v-model:is-open="dialogOpen"
style="width: 500px"
:persistent="persistent"
>
<div class="width-capped-content">
<ipl-space
color="light"
class="vertical-layout"
>
<div>Hello!</div>
<ipl-button
label="Button!"
/>
<ipl-button
label="Close dialog"
color="red"
@click="dialogOpen = false"
/>
</ipl-space>
</div>
</ipl-dialog>
<ipl-button
label="Open dialog"
@click="dialogOpen = true"
/>View Source
template
<!--
Without this form element, the form wouldn't get submitted
when the enter key is pressed.
Remove the @submit.prevent listener and the dialog can act
as a regular HTML form, sending out its contents as a GET/POST
request when submitted.
-->
<form @submit.prevent>
<ipl-dialog
v-model:is-open="dialogOpen"
style="width: 400px"
>
<template #header>
<ipl-dialog-title
title="Form Dialog"
@close="dialogOpen = false"
/>
</template>
<ipl-space
color="light"
class="vertical-layout"
>
<ipl-input
v-model="name"
name="name"
label="Name"
/>
<ipl-input
v-model="timeRemaining"
name="timeRemaining"
label="Time remaining"
extra="seconds"
type="number"
/>
<ipl-small-toggle
label="Everything will be okay"
/>
<ipl-button>
A button
</ipl-button>
</ipl-space>
<template #footer>
<ipl-button
type="submit"
label="Submit"
color="green"
@click="onSubmit"
/>
</template>
</ipl-dialog>
</form>View Source
template
<ipl-dialog
v-model:is-open="dialogOpen"
style="width: 500px"
:persistent="persistent"
>
<template #header>
<ipl-dialog-title
title="Test Dialog"
@close="dialogOpen = false"
/>
</template>
<div class="width-capped-content">
<ipl-space
color="light"
class="vertical-layout"
>
<div>Hello!</div>
<ipl-button
label="Button!"
/>
<ipl-small-toggle
v-model="doOverflow"
label="Overflow?"
/>
<div v-if="doOverflow">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</ipl-space>
</div>
<template #footer>
<div class="width-capped-content">
<ipl-button
label="Close dialog"
color="red"
@click="dialogOpen = false"
/>
</div>
</template>
</ipl-dialog>
<ipl-button
label="Open dialog (Header & Footer)"
@click="dialogOpen = true"
/>View Source
template
<ipl-dialog
v-model:is-open="dialogOpen"
:anchor-x="anchorX"
:anchor-y="anchorY"
style="width: 500px"
>
<template #header>
<ipl-dialog-title
title="Test Dialog"
@close="dialogOpen = false"
/>
</template>
<div class="width-capped-content">
<ipl-space
color="light"
class="vertical-layout"
>
<div>Hello!</div>
<ipl-button
label="Button!"
/>
<ipl-radio
v-model="anchorX"
name="anchorX"
:options="positionOptions"
label="Horizontal position"
/>
<ipl-radio
v-model="anchorY"
name="anchorY"
:options="positionOptions"
label="Vertical position"
/>
<ipl-small-toggle
v-model="doOverflow"
label="Overflow?"
/>
<div v-if="doOverflow">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</ipl-space>
</div>
</ipl-dialog>
<ipl-button
label="Open dialog (Positioning)"
@click="dialogOpen = true"
/>Known issues
- The backdrop does not animate in Firefox (Bugzilla)
- When using Chromium-based browsers and if the sidebar isn't interacted with, pressing
escwill close it without an animation (Chromium bug)