TIWCGJQDropDownOptions Class
DropDownOptions Class
The TIWCGJQDropDownOptions type exposes the following members.
Name | Description | |||
---|---|---|---|---|
![]() | AcceptHTML | When True, the item caption will accept the html tags. | ||
![]() | Ajax | 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. In order for this function to work Select2 should be attached to a input type='hidden' tag instead of a select. | ||
![]() | AllowClear | 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. | ||
![]() | AttachTo | It can be attached to select or input Note: Some properties and functions are avaliable only when attached to input. Please read the documentation for each property on author home page: http://ivaynberg.github.com/select2/select2-latest.html#documentatio n | ||
![]() | CaseSensitive | Determines case sensitivity | ||
![]() | CGJSContainer | Represents property | ||
![]() | ClassData | Represents property | ||
![]() | CloseOnSelect | If set to true the dropdown is not closed after a selection is made, allowing for rapid selection of multiple items. By default this option is disabled. Only applies when configured in multi-select mode. | ||
![]() | ContainerCss | 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. | ||
![]() | ContainerCssClass | Css class that will be added to select2's container tag | ||
![]() | CreateSearchChoice | 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. 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. | ||
![]() | Data | 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 | ||
![]() | DropDown | Represents property | ||
![]() | DropDownCss | 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. | ||
![]() | DropDownCssClass | Css class that will be added to select2's dropdown container | ||
![]() | EscapeMarkup | Function used to post-process markup returned from formatter functions. By default this function escapes html entities to prevent javascript injection. | ||
![]() | FormatInputTooShort | Function used to render the "Search input too short" message | ||
![]() | FormatNoMatches | Function used to render the "No matches" message | ||
![]() | FormatResult | Function used to render a result that the user can select. 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 | ||
![]() | FormatResultCssClass | Function used to add css classes to result elements. By default when attached to a select css classes from options will be automatically copied | ||
![]() | FormatSearching | Function used to render the "Searching..." message that is displayed while search is in progress | ||
![]() | FormatSelection | Function used to render the current 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 | ||
![]() | FormatSelectionTooBig | Function used to render the "You cannot select any more choices" message | ||
![]() | Id | Function used to get the id from the choice object or a string representing the key under which the id is stored. | ||
![]() | InfiniteScroll | If True allows Infinite Scroll OnGetCompleteData should check APage param and return IsMore if there is more data to send after. | ||
![]() | InputTooShortMsg | Search Input too short Caption | ||
![]() | InstList | Represents property | ||
![]() | IsStored | Represents property | ||
![]() | JSon | Return the Interface of SuperObject (ISuperObject) (Inherited from TIWCGJSon.) | ||
![]() | JSonEvents[string] | Represents property | ||
![]() | List | Represents property | ||
![]() | LoadMorePadding | 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. | ||
![]() | MapID | Represents property | ||
![]() | Matcher | 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. | ||
![]() | MaximumInputLength | Maximum number of characters that can be entered for an input | ||
![]() | MaximumSelectionSize | 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 | ||
![]() | MemberList | Represents property | ||
![]() | MinimumInputLength | Number of characters necessary to start a search | ||
![]() | MinimumResultsForSearch | 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. Only applies to single-value select boxes | ||
![]() | Multiple | Whether or not Select2 allows selection of multiple values. | ||
![]() | NoMatchesMsg | Caption when no matches are found | ||
![]() | OnBlur | Trigger on blur | ||
![]() | OnChange | Fired when selection is changed. This event is not fired when the selection is changed using Select2's val() method. 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. | ||
![]() | OnFocus | Trigger on focus | ||
![]() | OnInitSelection | Called when Select2 is created to allow the user to initialize the selection based on the value of the element select2 is attached to. This function will only be called when there is initial input to be processed. | ||
![]() | OnOpen | Fired when the dropdown is shown. The event listener can prevent the opening by calling preventDefault() on the supplied event object. | ||
![]() | OnOpening | Trigger on opening the dropdown. | ||
![]() | OnSortResults | Used to sort the results list for searching right before display. Useful for sorting matches by relevance to the user's search term. | ||
![]() | OnTokenizer | 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 | ||
![]() | OpenOnEnter | 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. | ||
![]() | Owner | Represents property | ||
![]() | Placeholder | 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. | ||
![]() | PopupHeight | Popup height | ||
![]() | PropCount | Represents property | ||
![]() | PropIndexByName[string] | Represents property | ||
![]() | PropList | Represents property | ||
![]() | PropName | Represents property | ||
![]() | PropNameByIndex[Integer] | Represents property | ||
![]() | Query | Function used to query results for the search term. | ||
![]() | ReadOnlyPreselected | When True, will prevent the removing of pre-selected items.
| ||
![]() | SearchingMsg | Caption to put when is Searching | ||
![]() | SelectionTooBigMsg | Selection too big msg | ||
![]() | SelectOnBlur | Set to true if you want Select2 to select the currently highlighted option when it is blurred | ||
![]() | Separator | Separator character or string used to delimit ids in value attribute of the multi-valued selects. The default delimiter is the , character. | ||
![]() | SObj | Represents property | ||
![]() | Sortable | JQDropDown supports drag and drop sorting of selected choices. Note: The sorting is only available when JQDropDown is attached to a input. | ||
![]() | Tags | 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. | ||
![]() | TokenSeparators | 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 [',', ' '] | ||
![]() | Width | 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 avaluated, otherwise the value is used verbatim |
Name | Description | |||
---|---|---|---|---|
![]() | AddBooleanMember(string,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddColorMember(string,TIWCGColor,Boolean,Boolean) | Represents method | ||
![]() | AddCurrencyMember(string,Currency,Boolean,Boolean) | Represents method | ||
![]() | AddDoubleMember(string,Double,Boolean,Boolean) | Represents method | ||
![]() | AddDynObjListMember(string,Boolean,Boolean) | Represents method | ||
![]() | AddEnumMember(string,string[],Byte,Boolean,Boolean) | Represents method | ||
![]() | AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean) | Represents method | ||
![]() | AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean) | Represents method | ||
![]() | AddHTML5(TIWHTMLTag) | Represents method | ||
![]() | AddIntegerMember(string,Integer,Boolean,Boolean) | Represents method | ||
![]() | AddJSonMember(string,TCGJSon,Boolean,Boolean) | Represents method | ||
![]() | AddMembers | The procedure add jquery properties.
| ||
![]() | AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddSelectByValue(string) | Represents method | ||
![]() | AddSimpleArrayMember(string,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddStringMember(string,string,Boolean,Boolean) | Represents method | ||
![]() | AddVariantMember(string,Variant,Boolean,Boolean) | Represents method | ||
![]() | AfterConstruction | Represents method | ||
![]() | Assign(TPersistent) | Represents method | ||
![]() | CheckJSonMember(Integer) | Represents method | ||
![]() | ClearSelection | Represents method | ||
![]() | Close | Represents method | ||
![]() | ConvertEnumToString(string) | Represents method | ||
![]() | ConvertSetToString(string,TCGStringArray) | Represents method | ||
![]() | Disable | Represents method | ||
![]() | Enable | Represents method | ||
![]() | FreeJSonObj(Integer) | Overloaded. Represents method | ||
![]() | FreeJSonObj(string) | Overloaded. Represents method | ||
![]() | GetBooleanValue(Integer) | Represents method | ||
![]() | GetCGJSContainer | Represents method | ||
![]() | GetColorValue(Integer) | Represents method | ||
![]() | GetCurrencyValue(Integer) | Represents method | ||
![]() | GetCustomJq(string,ISuperObject) | Represents method | ||
![]() | GetDoubleValue(Integer) | Represents method | ||
![]() | GetDynObjListValue(Integer) | Represents method | ||
![]() | GetEnumAsString(Integer) | Represents method | ||
![]() | GetEnumerValue(Integer) | Represents method | ||
![]() | GetEnumSetValue(Integer,Pointer) | Represents method | ||
![]() | GetFixedScript(TIWCGJSonFunc,Boolean) | Represents method | ||
![]() | GetFuncValue(Integer) | Represents method | ||
![]() | GetHTMLName | Represents method | ||
![]() | GetImplComponent | Represents method | ||
![]() | GetIntegerValue(Integer) | Represents method | ||
![]() | GetIsStored | Represents method | ||
![]() | GetItemIndex | Represents method | ||
![]() | GetIWCLName | Represents method | ||
![]() | GetJSon | Represents method | ||
![]() | GetJSonByType(Boolean,Boolean) | Represents method | ||
![]() | GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean) | Represents method | ||
![]() | GetJSonValue(Integer) | Represents method | ||
![]() | GetJSonValueObj(Integer) | Represents method | ||
![]() | GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string) | Represents method | ||
![]() | GetMemberSetterHandler(TObject,TCGJSonMember) | Represents method | ||
![]() | GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript) | Represents method | ||
![]() | GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean) | Represents method | ||
![]() | GetObjListValue(Integer) | Represents method | ||
![]() | GetObjValue(Integer) | Represents method | ||
![]() | GetOwner | Represents method | ||
![]() | GetPropName | Represents method | ||
![]() | GetSetValueJS(string) | Represents method | ||
![]() | GetSimpleArrayValue(Integer) | Represents method | ||
![]() | GetStringValue(Integer) | Represents method | ||
![]() | GetVariantValue(Integer) | Represents method | ||
![]() | InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean) | Represents method | ||
![]() ![]() | IsArray | Represents method | ||
![]() | IsBooleanStored(Integer) | Represents method | ||
![]() | IsColorStored(Integer) | Represents method | ||
![]() | IsCurrencyStored(Integer) | Represents method | ||
![]() | IsDoubleStored(Integer) | Represents method | ||
![]() | IsEnumerStored(Integer) | Represents method | ||
![]() | IsEnumSetStored(Integer) | Represents method | ||
![]() | IsFuncStored(Integer) | Represents method | ||
![]() | IsIntegerStored(Integer) | Represents method | ||
![]() | IsJSonObjStored(string) | Represents method | ||
![]() | IsJSonStored(Integer) | Represents method | ||
![]() | IsObjStored(Integer) | Represents method | ||
![]() | IsStringStored(Integer) | Represents method | ||
![]() | IsVariantStored(Integer) | Represents method | ||
![]() | jsClearSelection | Represents method | ||
![]() | jsClose | Represents method | ||
![]() | jsDisable | Represents method | ||
![]() | jsEnable | Represents method | ||
![]() | jsGetValue | Represents method | ||
![]() ![]() | JSonEscape | Represents method | ||
![]() ![]() | JSonIdent | Represents method | ||
![]() ![]() | JSonNameQuote | Represents method | ||
![]() | jsOnSortEnd | Represents method | ||
![]() | jsOnSortStart | Represents method | ||
![]() | jsOpen | Represents method | ||
![]() | jsSelectByData(ISuperObject) | Represents method | ||
![]() | jsSelectByValue(ISuperObject) | Overloaded. Represents method | ||
![]() | jsSelectByValue(string) | Overloaded. Represents method | ||
![]() | jsSelectByValues(string) | Overloaded. Represents method | ||
![]() | jsSelectByValues(string[]) | Overloaded. Represents method | ||
![]() | OnSortEnd | Represents method | ||
![]() | OnSortStart | Represents method | ||
![]() | Open | Represents method | ||
![]() | ResetProps | Represents method | ||
![]() | SelectByData(ISuperObject) | Represents method | ||
![]() | SelectByValue(ISuperObject) | Overloaded. Represents method | ||
![]() | SelectByValue(string) | Overloaded. Represents method | ||
![]() | SelectByValues(string) | Overloaded. Represents method | ||
![]() | SelectByValues(string[]) | Overloaded. Represents method | ||
![]() | SetBooleanValue(Integer,Boolean) | Represents method | ||
![]() | SetColorValue(Integer,TIWCGColor) | Represents method | ||
![]() | SetCurrencyValue(Integer,Currency) | Represents method | ||
![]() | SetDoubleValue(Integer,Double) | Represents method | ||
![]() | SetDynObjListValue(Integer,TIWCGJSonDynObjList) | Represents method | ||
![]() | SetEnumerValue(Integer,Byte) | Represents method | ||
![]() | SetEnumSetValue(Integer,Pointer) | Represents method | ||
![]() | SetFuncValue(Integer,TIWCGJSonFunc) | Represents method | ||
![]() | SetIntegerValue(Integer,Integer) | Represents method | ||
![]() | SetJSonValue(Integer,TCGJSon) | Represents method | ||
![]() | SetObjListValue(Integer,TIWCGJSonList) | Represents method | ||
![]() | SetObjValue(Integer,TIWCGJSon) | Represents method | ||
![]() | SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray) | Represents method | ||
![]() | SetStringValue(Integer,string) | Represents method | ||
![]() | SetVariantValue(Integer,Variant) | Represents method | ||
![]() | StoreProperty(PPropInfo,TObject) | Represents method | ||
![]() | SupportsSetter(TObject,TCGJSonMember) | Represents method | ||
![]() | UrlHandler(string,TStrings,TCGWebRequest,TCGWebResponse) | Represents method |
Name | Description | |
---|---|---|
![]() | OnGetDropDownData | Represents property |
![]() | OnGetDropDownDataEx | Represents property |
![]() | _Events_ | Represents property |