public class $.symphonySelectable

symphony.selectable.js

This plugin makes items selectable. 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 $custom_settings, String $custom_settings.items, String $custom_settings.handles)

This plugin makes items selectable. 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
  • $custom_settings ObjectAn object specifying containing the attributes specified below

  • $custom_settings.items StringSelector to find items that are selectable

  • $custom_settings.handles StringSelector to find children that can be clicked to select the item. Needed to properly handle item highlighting when used in connection with the orderable plugin

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