That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
$('body').off('.data-api')
1872 年,世界上最大的 215 kg 的块金在澳大利亚新南威尔士中找到。加利福尼亚伍德兰的 Byron Jackson 公司也在该年成立,它是另一个传奇性瑰宝。Byron Jackson 在短短的工业泵历 史中获得“第一个”和“最大”称誉不胜枚举,它涵盖了几乎每个设计和应用的离心泵。
$("#myModal").modal() // initialized with defaults
$("#myModal").modal({ keyboard: false }) // initialized with no keyboard
$("#myModal").modal('show') // initializes and invokes show immediately
Heads up!
Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.
This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shown
This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.
placement
string|function
'top'
how to position the tooltip - top | bottom | left | right
selector
string
false
If a selector is provided, tooltip objects will be delegated to the specified targets.
title
string | function
''
default title value if `title` tag isn't present
trigger
string
'hover'
how tooltip is triggered - click | hover | focus | manual
delay
number | object
0
1991 Developed world’s largest compositecasing, 300mm (12in) X250mm (10in) X 375mm (15in) at 64kg (140lb) 已开发的世界上最大的复合材料外壳,尺寸为 300mm (12in) X 250mm (10in) X 375mm (15in),重量为 64kg (140lb)
Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.
placement
string|function
'right'
how to position the popover - top | bottom | left | right
selector
string
false
if a selector is provided, tooltip objects will be delegated to the specified targets
trigger
string
'click'
how popover is triggered - click | hover | focus | manual
title
string | function
''
default title value if `title` attribute isn't present
content
string | function
''
default content value if `data-content` attribute isn't present
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)
toggle
boolean
true
Toggles the collapsible element on invocation
售后服务
我们的优势
Activates your content as a collapsible element. Accepts an optional options object.
The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.
items
number
8
The max number of items to display in the dropdown.
minLength
number
1
The minimum character length needed before triggering autocomplete suggestions
matcher
function
case insensitive
The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.
sorter
function
exact match, case sensitive, case insensitive
Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.
updater
function
returns selected item
The method used to return selected item. Accepts a single argument, the item and has the scope of the typeahead instance.
highlighter
function
highlights all default matches
Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.
Heads up!
You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by affix, affix-top, and affix-bottom. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.
Pixels to offset from screen when calculating position of scroll. If a single number is provide, the offset will be applied in both top and left directions. To listen for a single direction, or multiple unique offsets, just provided an object offset: { x: 10 }. Use a function when you need to dynamically provide an offset (useful for some responsive designs).