public class $.symphonySelectable

symphony.selectable.js

Create selectable elements. Clicking an item will select it by adding the class .selected. Holding down the shift key while clicking multiple items creates a selection range. Holding the meta key (which is cmd on a Mac or ctrl on Windows) allows the selection of multiple items or the modification of an already selected range of items. Doubleclicking outside the selection list will remove the selection.

				var selectable = $('table').symphonySelectable();
				selectable.find('a').mousedown(function(event) {
					event.stopPropagation();
				});

Methods

static symphonySelectable(Object $options, String $options.items, String $options.ignore, String $optinos.mode)

Create selectable elements. Clicking an item will select it by adding the class .selected. Holding down the shift key while clicking multiple items creates a selection range. Holding the meta key (which is cmd on a Mac or ctrl on Windows) allows the selection of multiple items or the modification of an already selected range of items. Doubleclicking outside the selection list will remove the selection.

				var selectable = $('table').symphonySelectable();
				selectable.find('a').mousedown(function(event) {
					event.stopPropagation();
				});
Parameters
  • $options ObjectAn object specifying containing the attributes specified below

  • $options.items StringSelector to find items that are selectable item. Needed to properly handle item highlighting when used in connection with the orderable plugin

  • $options.ignore StringSelector to find elements that should not propagate to the handle

  • $optinos.mode StringEither 'default' (click removes other selections) or 'additive' (click adds to exisiting selection)

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