2/17/2022

Download DB Solo For Mac 5.3

ParameterTypeDescription
widthstring Controls the width style attribute of the Select2 container div. The following values are supported:
off
No width attribute will be set. Keep in mind that the container div copies classes from the source element so setting the width attribute may not always be necessary.
element
Uses javascript to calculate the width of the source element.
copy
Copies the value of the width style attribute set on the source element.
resolve
First attempts to copy than falls back on element.
other values
if the width attribute contains a function it will be evaluated, otherwise the value is used verbatim.
minimumInputLengthintNumber of characters necessary to start a search.
maximumInputLengthintMaximum number of characters that can be entered for an input.
minimumResultsForSearchint

The minimum number of results that must be initially (after opening the dropdown for the first time) populated in order to keep the search field. This is useful for cases where local data is used with just a few results, in which case the search box is not very useful and wastes screen space.

The option can be set to a negative value to permanently hide the search field.

Only applies to single-value select boxes

maximumSelectionSizeint/function

The maximum number of items that can be selected in a multi-select control. If this number is less than 1 selection is not limited.

Once the number of selected items reaches the maximum specified the contents of the dropdown will be populated by the formatSelectionTooBig function.

placeholderstring

Initial value that is selected if no other selection is made.

The placeholder can also be specified as a data-placeholder attribute on the select or input element that Select2 is attached to.

Note that because browsers assume the first option element is selected in non-multi-value select boxes an empty first option element must be provided (<option></option>) for the placeholder to work.

placeholderOptionfunction/string

When attached to a select resolves the option that should be used as the placeholder. Can either be a function which given the select element should return the option element or a string first to indicate that the first option should be used.

This option is useful when Select2's default of using the first option only if it has no value and no text is not suitable.

separatorstring

Separator character or string used to delimit ids in value attribute of the multi-valued selects. The default delimiter is the , character.

allowClearboolean

Whether or not a clear button is displayed when the select box has a selection. The button, when clicked, resets the value of the select box back to the placeholder, thus this option is only available when the placeholder is specified.

This option only works when the placeholder is specified.

When attached to a select an option with an empty value must be provided. This is the option that will be selected when the button is pressed since a select box requires at least one selection option.

Also, note that this option only works with non-multi-value based selects because multi-value selects always provide such a button for every selected option.

multipleboolean

Whether or not Select2 allows selection of multiple values.

When Select2 is attached to a select element this value will be ignored and select's multiple attribute will be used instead.

closeOnSelectboolean

If set to false the dropdown is not closed after a selection is made, allowing for rapid selection of multiple items. By default this option is set to true.

Only applies when configured in multi-select mode.

openOnEnterboolean

If set to true the dropdown is opened when the user presses the enter key and Select2 is closed. By default this option is enabled.

idfunction Function used to get the id from the choice object or a string representing the key under which the id is stored.
ParameterTypeDescription
objectobjectA choice object.
<returns>stringthe id of the object.
The default implementation expects the object to have a id property that is returned.
matcherfunction Used to determine whether or not the search term matches an option when a built-in query function is used. The built in query function is used when Select2 is attached to a select, or the local or tags helpers are used.
ParameterTypeDescription
termstringsearch term.
textstringtext of the option being matched.
optionjquery objectthe option element we are trying to match. Only given when attached to select. Can be used to match against custom attributes on the option tag in addition to matching on the option's text.
<returns>booleantrue if search term matches the text, or false otherwise.
The default implementation is case insensitive and matches anywhere in the term: function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase())>=0; }
sortResultsfunction Used to sort the results list for searching right before display. Useful for sorting matches by relevance to the user's search term. .
objectobjectOne of the result objects returned from the query function
containerjQuery objectjQuery wrapper of the node that should contain the representation of the result.
queryobjectThe query object used to request this set of results.
<returns>objectA results object.
Defaults to no sorting: function(results, container, query) { return results; }
formatSelectionfunction Function used to render the current selection.
ParameterTypeDescription
objectobjectThe selected result object returned from the query function.
containerjQuery objectjQuery wrapper of the node to which the selection should be appended.
escapeMarkupfunctionFunction that can be used to escape html markup. This is the function defined in the escapeMarkupoption, or the default.
<returns>string (optional)Html string, a DOM element, or a jQuery object that renders the selection.

The default implementation expects the object to have a text property that is returned.

The implementation may choose to append elements directly to the provided container object, or return a single value and have it automatically appended.


When attached to a select the original <option> (or <optgroup>) element is accessible inside the specified function through the property item.element:

formatResultfunction Function used to render a result that the user can select.
ParameterTypeDescription
objectobjectOne of the result objects returned from the query function.
containerjQuery objectjQuery wrapper of the node that should contain the representation of the result.
queryobjectThe query object used to request this set of results.
escapeMarkupfunctionFunction used to escape markup in results. If you do not expect to render custom markup you should pass your text through this function to escape any markup that may have been accidentally returned. This function is configurable in options of select2.
<returns>string (optional)Html string, a DOM element, or a jQuery object that represents the result.

The default implementation expects the object to have a text property that is returned.

The implementation may choose to append elements directly to the provided container object, or return a single value and have it automatically appended.


When attached to a select the original <option> (or <optgroup>) element is accessible inside the specified function through the property item.element:

formatResultCssClassfunction Function used to add css classes to result elements.
ParameterTypeDescription
objectobjectOne of the result objects returned from the query function.
<returns>string (optional)String containing css class names separated by a space.

By default when attached to a select css classes from options will be automatically copied.

formatNoMatchesstring/function String containing 'No matches' message, or
Function used to render the message
ParameterTypeDescription
termstringSearch string entered by user.
<returns>stringMessage html.
formatSearchingstring/function String containing 'Searching...' message, or
Function used to render the message that is displayed while search is in progress.
ParameterTypeDescription
<returns>stringMessage html or null/undefined to disable the message.
formatAjaxErrorstring/function String containing 'Loading Failed' message, or
Function used to render the message
ParameterTypeDescription
jqXHRobjectThe XMLHttpRequest object.
textStatusstringAjax request status text.
errorThrownstringServer response status text.
<returns>stringMessage html.

For more info on the parameters, refer to the JQuery API Documentation.

formatInputTooShortstring/function String containing 'Search input too short' message, or
Function used to render the message.
ParameterTypeDescription
termstringSearch string entered by user.
minLengthintMinimum required term length.
<returns>stringMessage html.
formatInputTooLongstring/function String containing 'Search input too long' message, or
Function used to render the message.
ParameterTypeDescription
termstringSearch string entered by user.
maxLengthintMaximum required term length.
<returns>stringMessage html.
formatSelectionTooBigstring/function String containing 'You cannot select any more choices' message, or
Function used to render the message.
ParameterTypeDescription
maxSizestringThe maximum specified size of the selection.
<returns>stringMessage html.
formatLoadMorestring/function String containing 'Loading more results…' message, or
Function used to render the message.
ParameterTypeDescription
pageNumberstringThe current page.
<returns>stringMessage html.
createSearchChoicefunction Creates a new selectable choice from user's search term. Allows creation of choices not available via the query function. Useful when the user can create choices on the fly, eg for the 'tagging' usecase.
ParameterTypeDescription
termstringSearch string entered by user.
<returns>object (optional)Object representing the new choice. Must at least contain an id attribute.
If the function returns undefined or null no choice will be created. If a new choice is created it is displayed first in the selection list so that user may select it by simply pressing enter.

When used in combination with input[type=hidden] tag care must be taken to sanitize the id attribute of the choice object, especially stripping , as it is used as a value separator.

createSearchChoicePositionstring function Define the position where to insert element created by createSearchChoice. The following values are supported:
top
Insert in the top of the list
bottom
Insert at the end of the list
<function>

A custom function. For example if you want to insert the new item in the second position:

initSelectionfunction Called when Select2 is created to allow the user to initialize the selection based on the value of the element select2 is attached to.

Essentially this is an id->object mapping function.

ParameterTypeDescription
elementjQuery arrayelement Select2 is attached to.
callbackfunctioncallback function that should be called with the data which is either an object in case of a single select or an array of objects in case of multi-select.

This function will only be called when there is initial input to be processed.

Here is an example implementation used for tags. Tags are the simplest form of data where the id is also the text:
tokenizerfunction A tokenizer function can process the input typed into the search field after every keystroke and extract and select choices. This is useful, for example, in tagging scenarios where the user can create tags quickly by separating them with a comma or a space instead of pressing enter.

Tokenizer only applies to multi-selects.

ParameterTypeDescription
inputstringThe text entered into the search field so far.
selectionarrayArray of objects representing the current selection. Useful if tokenizer needs to filter out duplicates.
selectCallbackfunctionCallback that can be used to add objects to the selection.
optsobjectOptions with which Select2 was initialized. Useful if tokenizer needs to access some properties in the options.
<returns>string (optional)Returns the string to which the input of the search field should be set to. Usually this is the remainder, of any, of the string after the tokens have been stripped. If undefined or null is returned the input of the search field is unchanged.
The default tokenizer will only be used if the tokenSeparators and createSearchChoice options are specified. The default tokenizer will split the string using any separator in tokenSeparators and will create and select choice objects using createSearchChoice option. It will also ignore duplicates, silently swallowing those tokens.
tokenSeparatorsarray An array of strings that define token separators for the default tokenizer function. By default, this option is set to an empty array which means tokenization using the default tokenizer is disabled. Usually it is sensible to set this option to a value similar to [',', ' '].
queryfunction Function used to query results for the search term.
ParameterTypeDescription
options.elementjquery objectThe element Select2 is attached to.
options.termstringSearch string entered by user.
options.pageint1-based page number tracked by Select2 for use with infinite scrolling of results.
options.contextobjectAn object that persists across the lifecycle of queries for the same search term (the query to retrieve the initial results, and subsequent queries to retrieve more result pages for the same search term). When this function is first called for a new search term this object will be null. The user may choose to set any object in the results.context field - this object will then be used as the context parameter for all calls to the query method that will load more search results for the initial search term. The object will be reset back to null when a new search term is queried. This feature is useful when a page number is not easily mapped against the server side paging mechanism. For example, some server side paging mechanism may return a 'continuation token' that needs to be passed back to them in order to retrieve the next page of search results.
options.callbackfunctionCallback function that should be called with the result object. The result object:
ParameterTypeDescription
result.results[object]Array of result objects. The default renderers expect objects with id and text keys. The id property is required, even if custom renderers are used. The object may also contain a children key if hierarchical data is displayed. The object may also contain a disabled boolean property indicating whether this result can be selected.
result.morebooleantrueif more results are available for the current search term.
results.contextobjectA user-defined object that should be made available as the context parameter to the query function on subsequent queries to load more result pages for the same search term. See the description of options.context parameter.

In order for this function to work Select2 should be attached to a input type='hidden' tag instead of a select.

Example Data

Example Hierarchical Data

ajaxobject Options for the built in ajax query function. This object acts as a shortcut for having to manually write a function that performs ajax requests. The built-in function supports more advanced features such as throttling and dropping out-of-order responses.
ParameterTypeDescription
transportfunctionFunction that will be used to perform the ajax request. Must be parameter-compatible with $.ajax. Defaults to $.ajax if not specified. Allows the use of various ajax wrapper libraries such as: AjaxManager.
urlstring/functionString containing the ajax url or a function that returns such a string.
dataTypestringData type for the request. xml, json, jsonp, other formats supported by jquery.
quietMillisintNumber of milliseconds to wait for the user to stop typing before issuing the ajax request.
cachebooleanIf set to false, it will force requested pages not to be cached by the browser. Default is false.
jsonpCallbackstring/functionThe callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests.
datafunction Function to generate query parameters for the ajax request.
ParameterTypeDescription
termstringSearch term.
pageint1-based page number tracked by Select2 for use with infinite scrolling of results.
contextobjectSee options.context parameter to the query function above.
<returns>objectObject containing url parameters.
resultsfunction Function used to build the query results object from the ajax response
ParameterTypeDescription
dataobjectRetrieved data.
pageintPage number that was passed into the data function above.
queryobjectThe query object used to request this set of results.
<returns>objectResults object. See 'options.callback' in the 'query' function for format.
paramsobject/functionAn object or a function that returns an object that contains extra parameters that will be passed to the transport. For example it can be used to set the content type: {contentType: 'application/json;charset=utf-8'}

In order for this function to work Select2 should be attached to a input type='hidden' tag instead of a select.

For documentation of the data format see the query function.

dataarray/object Options for the built in query function that works with arrays.

If this element contains an array, each element in the array must contain id and text keys.

Alternatively, this element can be specified as an object in which results key must contain the data as an array and a text key can either be the name of the key in data items that contains text or a function that retrieves the text given a data element from the array.

tagsarray/function Puts Select2 into 'tagging'mode where the user can add new choices and pre-existing tags are provided via this options attribute which is either an array or a function that returns an array of objects or strings. If strings are used instead of objects they will be converted into an object that has an id and text attribute equal to the value of the string.
containerCssfunction/object Inline css that will be added to select2's container. Either an object containing css property/value key pairs or a function that returns such an object.
containerCssClassfunction/string Css class that will be added to select2's container tag.
dropdownCssfunction/object Inline css that will be added to select2's dropdown container. Either an object containing css property/value key pairs or a function that returns such an object.
dropdownCssClassfunction/string Css class that will be added to select2's dropdown container.
dropdownAutoWidthboolean When set to true attempts to automatically size the width of the dropdown based on content inside.
adaptContainerCssClassfunction Function that filters/renames css classes as they are copied from the source tag to the select2 container tag.
ParameterTypeDescription
clazzstringCss class being copied.
<returns>stringCss class to be applied or null/undefined/' to not apply it.
The default implementation applies all classes without modification.
adaptDropdownCssClassfunction Function that filters/renames css classes as they are copied from the source tag to the select2 dropdown tag.
ParameterTypeDescription
clazzstringCss class being copied.
<returns>stringCss class to be applied or null/undefined/' to not apply it.
The default implementation always returns null thereby filtering out all classes.
escapeMarkupfunctionString escapeMarkup(String markup)

Function used to post-process markup returned from formatter functions. By default this function escapes html entities to prevent javascript injection.

selectOnBlurboolean

Set to true if you want Select2 to select the currently highlighted option when it is blurred.

loadMorePaddinginteger Defines how many pixels need to be below the fold before the next page is loaded. The default value is 0 which means the result list needs to be scrolled all the way to the bottom for the next page of results to be loaded. This option can be used to trigger the load sooner, possibly resulting in a smoother user experience.
nextSearchTermfunction

Function used to determine what the next search term should be.

ParameterTypeDescription
dataobjectRetrieved data.
this.search.val()stringSearch term that yielded the current result set.

Here is an example implementation used to display the current search term when the dropdown is opened:

Function can be used when the dropdown is configured in single and multi-select mode. It is triggered after selecting an item. In single mode it is also triggered after initSelection (when provided).

Find binaries and reference documentation for current and past versions of Gradle.

  1. Trusted Windows (PC) download HD Writer AE 5.2. Virus-free and 100% clean download. Get HD Writer AE alternative downloads.
  2. Toad World Downloads No matter which database platforms you use, we offer solutions that make your job easier than ever. Get fully functioning software free for 30 days or download freeware.

Gets or sets the selection. If the value parameter is not specified, the id attribute of the currently selected element is returned. If the value parameter is specified it will become the current selection.

ParameterTypeDescription
value (optional)object
Single-ValuedMulti-Valued
Attached to selectValue of the value attribute of the option that should be selected.Array of the value attributes of the options that should be selected. null for empty.
Attached to input[type=hidden]Id of the object that should be selected. ' to clear. Can only be used if initSelection() was specified.An array of objects ids that should be selected. ' to clear. Can only be used if initSelection() was specified.
triggerChange (optional)booleanWhether or not a change event should be triggered. false by default.

val method invoked on a single-select with an unset value will return ', while a val method invoked on an empty multi-select will return [].

Example:

Notice that in order to use this method you must define the initSelection function in the options so Select2 knows how to transform the id of the object you pass in val() to the full object it needs to render selection. If you are attaching to a select element this function is already provided for you.

Gets or sets the selection. Analogous to val method, but works with objects instead of ids.

data method invoked on a single-select with an unset value will return null, while a data method invoked on an empty multi-select will return [].

Reverts changes to DOM done by Select2. Any selection done via Select2 will be preserved.

Opens the dropdown.

Closes the dropdown.

Enables or disables Select2 and its underlying form component based on the boolean parameter.

Toggles readonly mode on Select2 and its underlying form component based on the boolean parameter.

For

Retrieves the main container element that wraps all of DOM added by Select2 Example: console.log($('#tags').select2('container'));

Notifies Select2 that a drag and drop sorting operation has started. Select2 will hide all non-selection list items such as the search container, etc. Example: $('#tags').select2('onSortStart');

Notifies Select2 that a drag and drop sorting operation has finished. Select2 will re-display any elements previously hidden and update the selection of the element it is attached to. Example: $('#tags').select2('onSortEnd');

Executes a new search using the provided value. Example: $('#tags').select2('search','California');

change

Fired when selection is changed.

The event object contains the following custom properties:

val
The current selection (taking into account the result of the change) - id or array of ids.
added
The added element, if any - the full element object, not just the id.
removed
The removed element, if any - the full element object, not just the id.

select2-opening

Fired before the dropdown is shown.

The event listener can prevent the opening by calling preventDefault() on the supplied event object.

select2-highlight

Fired when a choice is highlighted in the dropdown.

The event object contains the following custom properties:

val
The id of the highlighted choice object.
choice
The highlighted choice object.
Download db solo for mac 5.3 full

select2-selecting

Fired when a choice is being selected in the dropdown, but before any modification has been made to the selection. This event is used to allow the user to reject selection by calling event.preventDefault()

Download DB Solo for Mac 5.3 free

The event object contains the following custom properties:

val
The id of the highlighted choice object.
choice
The choice object about to be selected.

select2-clearing

Fired when a choice is being cleared in the dropdown, but before any modification has been made to the selection. This event is used to allow the user to reject the clear by calling event.preventDefault()

For the clear button to be visible the allowClear option needs to be true.

select2-removing

Fired when a choice is about to be removed in the dropdown/input, but before any removal of the choice has been made. This event is used to allow the user to reject removal by calling event.preventDefault()

Solo

The event object contains the following custom properties:

val
The id of the removing choice object.
choice
The choice object about to be removed.

select2-removed

Fired when a choice is removed or cleared.

The event object contains the following custom properties:

Download DB Solo For Mac 5.3

val
The id of the highlighted choice object.
choice
The highlighted choice object.

select2-loaded

Download Db Solo For Mac 5.3 Full

Fired when query function is done loading the data and the results list has been updated

The event object contains the following custom properties:

items
data that was used to populate the results.