Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ips.ui.selectTree

Description

The SelectTree widget allows users to select items from a tree-like structure efficiently, without the server having to generate the entire tree immediately.

Note: This widget is designed for use only with the \IPS\Helpers\Form\Node helper.

 

Options

placeholder
(String; optional; default 'Select')

Text to use as the placeholder when no items are selected.

 

multiple
(Boolean; optional; default false)

Are users allowed to select multiple items at once?

 

selected
(Mixed; optional; default false)

Defines the pre-selected items as a JSON object, or false if no items are selected yet.

 

url
(String; required)

The URL used to fetch child items via AJAX.

 

Events emitted by ips.ui.selectTree

nodeItemSelected

Triggered when the user selects an item in the menu. Emitted on all items in the menu.

Event data: 

  • title
    The text of the element within the selected item, that has the attribute data-role="nodeTitle"
  • id
    The ID of this item as specified by the data-id attribute on the item. Note: this is not the HTML id attribute.

 

nodeSelectedChanged

Triggered when the selection in the menu changes (i.e. items are either selected or unselected). Emitted on all items in the menu.

Event data:

  • selectedItems
    Array containing the data-id attribute values of all currently-selected items.

 

nodeSelectionClosed

Triggered when the drop-down menu is closed. Emitted on the root data-ipsSelectTree element.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.