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.stack

Description

The stack widget is a special form control which enables users to enter multiple values for a form field. In IPB 3.x, this was achieved by entering values in a textarea with each value on a new line. This widget is designed to make that functionality more user friendly.

Note: It is expected that the \IPS\Helpers\Form class will be used to build the HTML for stackable controls. Consult the documentation for the PHP class for more information.

 

Options

sortable
(Boolean; optional; default true)

Specifies whether the values in the stack control can be reordered with drag and drop.

 

maxItems
(Number; optional)

If provided, specifies the maximum number of values this stack control will accept.

 

itemTemplate
(Template key; optional; default 'core.forms.stack')

If provided, specifies the template which will be used to dynamically build new rows in the stack control.

 

Events emitted by ips.ui.stack

Events are emitted on the root stack element.

stackInitialized

Triggered when the stack has been built and is initialized.

Event data:

  • count
    Count of the current number of values in the stack control

 

stackRowAdded

Triggered when the user adds a new row to the stack control (either by pressing Enter in an existing row, or pressing the 'Add Another' button).

Event data:

  • count
    Count of the current number of values in the stack control

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.