Skip to content
On this page

NcAppNavigationIconCollapsible

Props

Prop nameDescriptionTypeValuesDefault
openboolean-true

Events

Event namePropertiesDescription
click

NcAppNavigationItem

Author: John Molakvoæ skjnldsv@protonmail.com ,Author: Raimund Schlüßler raimund.schluessler@mailbox.org

Props

Prop nameDescriptionTypeValuesDefault
nameThe main text content of the entry.string-
titleThe title attribute of the element.string-null
idid attribute of the list item elementstring-() => 'app-navigation-item-' + GenRandomId()
iconRefers to the icon on the left, this prop accepts a class
like 'icon-category-enabled'.
string-''
loadingDisplays a loading animated icon on the left of the element
instead of the icon.
boolean-false
toPassing in a route will make the root element of this
component a <router-link /> that points to that route.
By leaving this blank, the root element will be a <li>.
string|object-''
hrefA direct link. This will be used as the href attribute.
This will ignore any to prop being defined.
string-null
exactPass in true if you want the matching behaviour to
be non-inclusive: https://router.vuejs.org/api/#exact
boolean-false
allowCollapseGives the possibility to collapse the children elements into the
parent element (true) or expands the children elements (false).
boolean-false
editableMakes the name of the item editable by providing an ActionButton
component that toggles a form
boolean-false
editLabelOnly for 'editable' items, sets label for the edit action button.string-''
editPlaceholderOnly for items in 'editable' mode, sets the placeholder text for the editing form.string-''
pinnedPins the item to the bottom left area, above the settings. Do not
place 'non-pinned' AppnavigationItem components below pinned
ones.
boolean-false
undoPuts the item in the 'undo' state.boolean-false
openThe navigation collapsible state (synced)boolean-false
menuOpenThe actions menu open state (synced)boolean-false
forceMenuForce the actions to display in a three dot menuboolean-false
menuIconThe action's menu default iconstring-undefined
menuPlacementThe action's menu directionstring-'bottom'
ariaDescriptionEntry aria detailsstring-null
forceDisplayActionsTo be used only when the elements in the actions menu are very importantboolean-false

Events

Event namePropertiesDescription
update:menuOpen
update:open
update:name
click
undo

Slots

NameDescriptionBindings
icon
counter
menu-iconSlot for the custom menu icon
actions
extra
default

Usage

Simple element

  • With an icon:
loading...
  • With a spinning loader instead of the icon:
loading...

Element with actions

Wrap the children in a template. If you have more than 2 actions, a popover menu and a menu button will be automatically created.

loading...

Element with counter

Just nest the counter in a template within <NcAppNavigationItem> and add #counter to it.

loading...

Element with children

Wrap the children in a template with the slot property and use the prop allowCollapse to choose wether to allow or prevent the user from collapsing the items.

loading...

Editable element

Add the prop :editable=true and an edit placeholder if you need it. By default the placeholder is the previous name of the element.

loading...

Undo element

Just set the undo and name props. When clicking the undo button, an undo event is emitted.

loading...

Href that start by http will be treated as external and opened in a new tab

loading...

Custom title

loading...

Pinned element

Just set the pinned prop.

loading...

NcInputConfirmCancel

Props

Prop nameDescriptionTypeValuesDefault
placeholderstring-''
valuestring-''

Events

Event namePropertiesDescription
input
confirm
cancel

Usage

loading...