Skip to content
On this page

NcAppSettingsDialog

Props

Prop nameDescriptionTypeValuesDefault
openDetermines the open / closed state of the modalboolean-
showNavigationShows the navigation on desktop if trueboolean-false
containerSelector for the popover containerstring-'body'
titleTitle of the settingsstring-''

Events

Event namePropertiesDescription
update:open

Slots

NameDescriptionBindings
default

Just nest the AppSettingSections component into NcAppSettingsDialog, providing the section's title prop. You can put your settings within each NcAppSettingsSection component.

vue
<template>
  <div>
    <NcButton @click="settingsOpen = true">Show Settings</NcButton>
    <NcAppSettingsDialog
      :open.sync="settingsOpen"
      :show-navigation="true"
      title="Application settings"
    >
      <NcAppSettingsSection id="asci-title-1" title="Example title 1">
        Some example content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-2" title="Example title 2">
        Some more content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-3" title="Example title 3">
        Some example content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-4" title="Example title 4">
        Some more content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-5" title="Example title 5">
        Some example content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-6" title="Example title 6">
        Some more content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-7" title="Example title 7">
        Some example content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-8" title="Example title 8">
        Some more content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-9" title="Example title 9">
        Some more content
      </NcAppSettingsSection>
      <NcAppSettingsSection id="asci-title-10" title="Example title 10">
        Some more content
      </NcAppSettingsSection>
    </NcAppSettingsDialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      settingsOpen: false
    };
  }
};
</script>