Lines Matching refs:config

81                     var selectionContainerYPos = this.$input.offset().top - this.config.scrollTarget.scrollTop() + this.$input.outerHeight(false),
84 displayContainerAboveInput = this.config.displayContainerAboveInput || document.documentElement.clientHeight - this.config.scrollTarget.scrollTop() < selectionContainerBottom,
89 selectionContainerYPos = this.$input.offset().top - selectionContainerHeight - this.config.scrollTarget.scrollTop() + parseInt(this.$selectionContainer.css('border-bottom-width'), 10);
123 this.config.displayContainerAboveInput = displayContainerAboveInput;
129 return this.config.multiple && this.config.selectAllMaxItemsThreshold && this.items && this.items.length <= this.config.selectAllMaxItemsThreshold;
151 this.config = $.extend(true, {}, this.defaults, this.options, this.metadata);
168 this.config.multiple = this.config.multiple || this.$originalElement.attr('multiple');
170 if (!this.config.scrollTarget) {
171 this.config.scrollTarget = $(window);
198 return this.config.name || this.$originalElement.data('sol-name') || this.$originalElement.attr('name');
248 if ($.isFunction(self.config.events.onScroll)) {
249 self.config.events.onScroll.call(self);
254 .attr('placeholder', this.config.texts.searchplaceholder);
256 this.$noResultsItem = $('<div class="sol-no-results"/>').html(this.config.texts.noItemsAvailable).hide();
257 this.$loadingData = $('<div class="sol-loading-data"/>').html(this.config.texts.loadingData);
322 var $el = this.config.resultsContainer || this.$innerContainer
323 if (this.config.resultsContainer) {
326 if (this.config.showSelectionBelowList) {
334 if (this.config.maxHeight) {
335 this.$selection.css('max-height', this.config.maxHeight);
376 if ($.isFunction(this.config.events.onRendered)) {
377 this.config.events.onRendered.call(this, this);
422 if ($changedItems.length > 0 && $.isFunction(self.config.events.onChange)) {
423 self.config.events.onChange.call(self, self, $changedItems);
463 }, self.config.searchTimeout))
586 if ($.isFunction(this.config.events.onScroll)) {
587 this.config.events.onScroll.call(this);
642 if (!this.config.data) {
644 } else if ($.isFunction(this.config.data)) {
645 this.items = this._fetchDataFromFunction(this.config.data);
646 } else if ($.isArray(this.config.data)) {
647 this.items = this._fetchDataFromArray(this.config.data);
648 } else if (typeof this.config.data === (typeof 'a string')) {
649 this._loadItemsFromUrl(this.config.data);
755 if ($.isFunction(this.config.converter)) {
756 return this.config.converter.call(this, this, dataItems);
780 if ($.isFunction(this.config.events.onInitialized)) {
781 this.config.events.onInitialized.call(this, this, solItems);
789 while (currentBatch++ < self.config.asyncBatchSize && nextIndex < solItems.length) {
839 if (this.config.multiple) {
843 if (this.config.useBracketParameters) {
928 if (self.config.multiple) {
953 if (this.config.showSelectAll === true || ($.isFunction(this.config.showSelectAll) && this.config.showSelectAll.call(this))) {
956 $deselectAllButton = $('<a href="#" class="sol-deselect-all"/>').html(this.config.texts.selectNone).click(function (e) {
961 $selectAllButton = $('<a href="#" class="sol-select-all"/>').html(this.config.texts.selectAll).click(function (e) {
996 if (this.config.multiple) {
999 this.config.scrollTarget.trigger('scroll');
1006 if (!skipCallback && $.isFunction(this.config.events.onChange)) {
1007 this.config.events.onChange.call(this, this, $changeItem);
1036 if ((this.config.multiple || this.config.allowNullSelection) && !$changedItem.prop('disabled')) {
1038 .html(this.config.texts.quickDelete)
1049 if (this.config.maxShow != 0 && selected.length + 1 > this.config.maxShow) {
1050 var xitemstext = this.config.texts.itemsSelected.replace('{$a}', selected.length + 1 - this.config.maxShow);
1070 if (this.config.maxShow != 0 && selected.length - 1 > this.config.maxShow) {
1071 var xitemstext = this.config.texts.itemsSelected.replace('{$a}', selected.length - 1 - this.config.maxShow);
1130 this.config.scrollTarget.bind('scroll', this.internalScrollWrapper).trigger('scroll');
1133 if ($.isFunction(this.config.events.onOpen)) {
1134 this.config.events.onOpen.call(this, this);
1145 this.config.scrollTarget.unbind('scroll', this.internalScrollWrapper);
1153 this.config.displayContainerAboveInput = undefined;
1155 if ($.isFunction(this.config.events.onClose)) {
1156 this.config.events.onClose.call(this, this);
1164 if (this.config.multiple) {
1176 this.config.closeOnClick && this.close();
1178 if ($.isFunction(this.config.events.onChange)) {
1179 this.config.events.onChange.call(this, this, $changedInputs);
1187 if (this.config.multiple) {
1198 this.config.closeOnClick && this.close();
1200 if ($.isFunction(this.config.events.onChange)) {
1201 this.config.events.onChange.call(this, this, $openedInputs.add($closedInputs));
1209 if (this.config.multiple) {
1223 if ($.isFunction(this.config.events.onChange)) {
1224 this.config.events.onChange.call(this, this, $changedInputs);