public class $.symphonyPickable

symphony.pickable.js

Pickable allows to show and hide elements based on the value of a select box. Each option is mapped to its associated content by matching the option `value` with the content `id`. If the option value is numeric, Pickable prefices it with `choice`. Only the content of the currently selected option is shown, all other elements associated with the given select box are hidden. If no content element of the given `id` is found, Pickable checks for a `data-request` attribute on the selected option. If a `data-request` URL is set, Pickable tries to fetch the content remotely and expects an content element with no additional markup in return.

				$('.picker').symphonyPickable();

Methods

static symphonyPickable(Object $options, String $options.content, String $options.pickables)

Pickable allows to show and hide elements based on the value of a select box. Each option is mapped to its associated content by matching the option `value` with the content `id`. If the option value is numeric, Pickable prefices it with `choice`. Only the content of the currently selected option is shown, all other elements associated with the given select box are hidden. If no content element of the given `id` is found, Pickable checks for a `data-request` attribute on the selected option. If a `data-request` URL is set, Pickable tries to fetch the content remotely and expects an content element with no additional markup in return.

				$('.picker').symphonyPickable();
Parameters
  • $options ObjectAn object containing the element selectors specified below

  • $options.content StringSelector to find the container that wraps all pickable elements

  • $options.pickables StringSelector used to find pickable elements

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details