Object options vs. 1.2.2 Full+Lite

An optional object to hold the Accordion properties. The ng.Sortable class inherits the ng.PlugIn.options and all it's properties.

Properties

String sort_tag (Optional - Default: (empty string)) vs. 1.2.2 Full+Lite
The HTML elements tag to sort. If this is blank, the tag will be inferred from the parent Element as the following:
  • OL or UL parents will default to LI
  • TABLE, TBODY or THEAD parents will default to TR
  • TR parent will default to TD
  • Otherwise, DIV will be the default.
String sort_classname (Optional - Default: (empty string)) vs. 1.2.2 Full+Lite
An optional class name for the sortable HTML Elements.
String css_prefix (Optional - Default: ng_sortable_) vs. 1.2.2 Full+Lite
A CSS class prefix to style the sortable HTML Elements.
Integer depth (Optional - Default: 0) vs. 1.2.2 Full+Lite
The maximum nested depth of the sub elements.
String css_indent_rule (Optional - Default: transform-translateX) vs. 1.2.2 Full+Lite
The CSS rule to indent sub elements. Since the light version doesn't support transform prefixed CSS rules, margin-left is used.
The word "left" will be changed to "right" in RTL languages.
String next_arrow (Optional - Default: ng_right_arrow) vs. 1.2.2 LITE ONLY
The next arrow image or class name to increase the element indent in the Lite version. The next and previous arrows will be switch in RTL languages.
String previous_arrow (Optional - Default: ng_left_arrow) vs. 1.2.2 LITE ONLY
The previous arrow image or class name to reduce the element indent in the Lite version. The next and previous arrows will be switched in RTL languages.
String up_arrow (Optional - Default: ng_up_arrow) vs. 1.2.2 Full+Lite
The up arrow image or class name to move the elements in the Lite version.
String down_arrow (Optional - Default: ng_down_arrow) vs. 1.2.2 LITE ONLY
The down arrow image or class name to move the element in the Lite version.
String move_arrow (Optional - Default: ng_switch_arrow) vs. 1.2.2 LITE ONLY
The up arrow class name or image to move the element between different drop targets.
String tr_indent_rule (Optional - Default: border-left-width) vs. 1.2.2 Full+Lite
The CSS rule to indent table rows elements. This CSS rule will be used in the first table cell. The word "left" will be changed to "right" in RTL languages.
Integer indent (Optional - Default: 25) vs. 1.2.2 Full+Lite
The indent depth in pixels.
String sort_var (Optional - Default: null) vs. 1.2.2 Full+Lite
A data attribute that will be used to generate the sortable value. If this is set to null, the element id will be used. For example
  • Sort Element
  • the sort_var will be "dbid".
  • Array targets (Optional - Default: null) vs. 1.2.2 Full+Lite
    Additional drop targets the sortable elements can be moved to. This can be an array of any HTML Elements, Sortable plugins or other plugins with a method "get_sortable()".
    Boolean disabled (Optional - Default: false) vs. 1.2.2 Full+Lite
    Set the plugin to be disabled. Disabling the plugin will add the class name "disabled" to the plugin HTML Element.
    Boolean can_sort (Optional - Default: true) vs. 1.2.2 Full+Lite
    Can the HTML Elements be sorted or not. This can be used if you want to stop the sorting option but not disable the plugin.

    Inherit Options from ng.PlugIn (options)

    HTML_Element object (Optional - Default: Null) vs. 1.1.0 Full+Lite
    The HTML Element that will hold all the plugin output and handle all the events. By default, an new DIV will be created at the bottom of the body.
    String language (Optional - Default: en (Configuration value)) vs. 1.1.0 Full+Lite
    The default plugin language.