Lines Matching refs:options

185 	var Button = function (element, options) {  argument
187 this.options = $.extend({}, $.fn.button.defaults, options)
199 $el[val](data[state] || this.options[state])
229 , options = typeof option == 'object' && option
230 if (!data) $this.data('button', (data = new Button(this, options)))
290 var Carousel = function (element, options) { argument
292 this.options = options
293 this.options.pause == 'hover' && this.$element
302 this.options.interval
304 && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
418 , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option)
419 , action = typeof option == 'string' ? option : options.slide
420 if (!data) $this.data('carousel', (data = new Carousel(this, options)))
423 else if (options.interval) data.cycle()
448 , options = $.extend({}, $target.data(), $this.data())
449 $target.carousel(options)
482 var Collapse = function (element, options) { argument
484 this.options = $.extend({}, $.fn.collapse.defaults, options)
486 if (this.options.parent) {
487 this.$parent = $(this.options.parent)
490 this.options.toggle && this.toggle()
573 , options = typeof option == 'object' && option
574 if (!data) $this.data('collapse', (data = new Collapse(this, options)))
798 var Modal = function (element, options) { argument
799 this.options = options
802 this.options.remote && this.$element.find('.modal-body').load(this.options.remote)
881 if (this.isShown && this.options.keyboard) {
912 if (this.isShown && this.options.backdrop) {
919 this.options.backdrop == 'static' ?
955 , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
956 if (!data) $this.data('modal', (data = new Modal(this, options)))
958 else if (options.show) data.show()
1026 var Tooltip = function (element, options) { argument
1027 this.init('tooltip', element, options)
1032 constructor: Tooltip, init: function (type, element, options) { argument
1038 this.options = this.getOptions(options)
1041 if (this.options.trigger == 'click') {
1042 this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1043 } else if (this.options.trigger != 'manual') {
1044 eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
1045 eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
1046 this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1047 this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1050 this.options.selector ?
1051 (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1053 }, getOptions: function (options) { argument
1054 options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
1056 if (options.delay && typeof options.delay == 'number') {
1057 options.delay = {
1058 show: options.delay, hide: options.delay
1062 return options
1066 if (!self.options.delay || !self.options.delay.show) return self.show()
1072 }, self.options.delay.show)
1077 if (!self.options.delay || !self.options.delay.hide) return self.hide()
1082 }, self.options.delay.hide)
1096 if (this.options.animation) {
1100 placement = typeof this.options.placement == 'function' ?
1101 this.options.placement.call(this, $tip[0], this.$element[0]) :
1102 this.options.placement
1140 $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1178 , o = this.options
1185 return this.$tip = this.$tip || $(this.options.template)
1190 this.options = null
1217 , options = typeof option == 'object' && option
1218 if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
1267 var Popover = function (element, options) { argument
1268 this.init('popover', element, options)
1282 $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1283 $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
1291 , o = this.options
1299 this.$tip = $(this.options.template)
1318 , options = typeof option == 'object' && option
1319 if (!data) $this.data('popover', (data = new Popover(this, options)))
1368 function ScrollSpy(element, options) { argument
1372 this.options = $.extend({}, $.fn.scrollspy.defaults, options)
1374 this.selector = (this.options.target
1411 var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
1467 , options = typeof option == 'object' && option
1468 if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
1667 var Typeahead = function (element, options) { argument
1669 this.options = $.extend({}, $.fn.typeahead.defaults, options)
1670 this.matcher = this.options.matcher || this.matcher
1671 this.sorter = this.options.sorter || this.sorter
1672 this.highlighter = this.options.highlighter || this.highlighter
1673 this.updater = this.options.updater || this.updater
1674 this.source = this.options.source
1675 this.$menu = $(this.options.menu)
1713 if (!this.query || this.query.length < this.options.minLength) {
1733 return this.render(items.slice(0, this.options.items)).show()
1758 i = $(that.options.item).attr('data-value', item)
1884 , options = typeof option == 'object' && option
1885 if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
1945 var Affix = function (element, options) { argument
1946 this.options = $.extend({}, $.fn.affix.defaults, options)
1962 , offset = this.options.offset
1995 , options = typeof option == 'object' && option
1996 if (!data) $this.data('affix', (data = new Affix(this, options)))