Follow us on Twitter and Facebook

///365体育在线

yabo亚博体育会员通道

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.

///365体育在线

Hover over the links below to see tooltips:

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.


///365体育在线

Trigger the tooltip via javascript:

$('#example').tooltip(options)

yabo亚博体育会员通道

Name type default description
animation boolean true apply a css fade transition to the tooltip
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 - hover | focus | manual
delay number | object 0

delay showing and hiding the tooltip (ms)

If a number is supplied, delay is applied to both hide/show

Object structure is: delay: { show: 500, hide: 100 }

Heads up! Options for individual tooltips can alternatively be specified through the use of data attributes.

yabo亚博体育会员通道

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

<a href="#" rel="tooltip" title="first tooltip">hover over me</a>

yabo亚博体育会员通道

亚历山大宋

Attaches a tooltip handler to an element collection.

亚历山大宋

Reveals an element's tooltip.

$('#element').tooltip('show')

亚历山大宋

Hides an element's tooltip.

$('#element').tooltip('hide')

亚历山大宋

Toggles an element's tooltip.

$('#element').tooltip('toggle')

yabo亚博体育会员通道

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

* Requires Tooltip to be included

///365体育在线

Hover over the button to trigger the popover.


///365体育在线

Enable popovers via javascript:

$('#example').popover(options)

yabo亚博体育会员通道

Name type default description
animation boolean true apply a css fade transition to the tooltip
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 'hover' how tooltip is triggered - 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
delay number | object 0

delay showing and hiding the popover (ms)

If a number is supplied, delay is applied to both hide/show

Object structure is: delay: { show: 500, hide: 100 }

Heads up! Options for individual popovers can alternatively be specified through the use of data attributes.

yabo亚博体育会员通道

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option.

yabo亚博体育会员通道

亚历山大宋

Initializes popovers for an element collection.

亚历山大宋

Reveals an elements popover.

$('#element').popover('show')

亚历山大宋

Hides an elements popover.

$('#element').popover('hide')

亚历山大宋

Toggles an elements popover.

$('#element').popover('toggle')

yabo亚博体育会员通道

The alert plugin is a tiny class for adding close functionality to alerts.

///365体育在线

The alerts plugin works on regular alert messages, and block messages.

× Holy guacamole! Best check yo self, you're not looking too good.
×

亚历山大宋

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

Take this action Or do this


///365体育在线

Enable dismissal of an alert via javascript:

$(".alert").alert()

yabo亚博体育会员通道

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

<a class="close" data-dismiss="alert" href="#">&times;</a>

yabo亚博体育会员通道

亚历山大宋

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

亚历山大宋

Closes an alert.

$(".alert").alert('close')

yabo亚博体育会员通道

Bootstrap's alert class exposes a few events for hooking into alert functionality.

Event Description
close This event fires immediately when the close instance method is called.
closed This event is fired when the alert has been closed (will wait for css transitions to complete).
$('#my-alert').bind('closed', function () {
  // do something
})

yabo亚博体育会员通道

Do more with buttons. Control button states or create groups of buttons for more components like toolbars.

///365体育在线

Use the buttons plugin for states and toggles.

Stateful
Single toggle
Checkbox
Radio

///365体育在线

Enable buttons via javascript:

$('.tabs').button()

yabo亚博体育会员通道

Data attributes are integral to the button plugin. Check out the example code below for the various markup types.

<!-- Add data-toggle="button" to activate toggling on a single button -->
<button class="btn" data-toggle="button">Single Toggle</button>

<!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group -->
<div class="btn-group" data-toggle="buttons-checkbox">
  <button class="btn">Left</button>
  <button class="btn">Middle</button>
  <button class="btn">Right</button>
</div>

<!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group -->
<div class="btn-group" data-toggle="buttons-radio">
  <button class="btn">Left</button>
  <button class="btn">Middle</button>
  <button class="btn">Right</button>
</div>

yabo亚博体育会员通道

亚历山大宋

Toggles push state. Gives the button the appearance that it has been activated.

Heads up! You can enable auto toggling of a button by using the data-toggle attribute.
<button class="btn" data-toggle="button" ></button>

亚历山大宋

Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.

<button class="btn" data-loading-text="loading stuff..." >...</button>
Heads up! Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".

亚历山大宋

Resets button state - swaps text to original text.

亚历山大宋

Resets button state - swaps text to any data defined text state.

<button class="btn" data-complete-text="finished!" >...</button>
<script>
  $('.btn').button('complete')
</script>

yabo亚博体育会员通道

Get base styles and flexible support for collapsible components like accordions and navigation.

///365体育在线

Using the collapse plugin, we built a simple accordion style widget:

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.

///365体育在线

Enable via javascript:

$(".collapse").collapse()

yabo亚博体育会员通道

Name type default description
parent selector false 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

yabo亚博体育会员通道

Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.

<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
  simple collapsible
</button>

<div id="demo" class="collapse in">  </div>
Heads up! To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.

yabo亚博体育会员通道

亚历山大宋

Activates your content as a collapsible element. Accepts an optional options object.

$('#myCollapsible').collapse({
  toggle: false
})

亚历山大宋

Toggles a collapsible element to shown or hidden.

亚历山大宋

Shows a collapsible element.

亚历山大宋

Hides a collapsible element.

yabo亚博体育会员通道

Bootstrap's collapse class exposes a few events for hooking into collapse functionality.

Event Description
show This event fires immediately when the show instance method is called.
shown This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).
hide This event is fired immediately when the hide method has been called.
hidden This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).
$('#myCollapsible').on('hidden', function () {
  // do something
})

yabo亚博体育会员通道

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

///365体育在线

Start typing in the field below to show the typeahead results.


///365体育在线

Call the typeahead via javascript:

$('.typeahead').typeahead()

yabo亚博体育会员通道

Name type default description
source array [ ] The data source to query against.
items number 8 The max number of items to display in the dropdown.
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.
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.

yabo亚博体育会员通道

Add data attributes to register an element with typeahead functionality.

<input type="text" data-provide="typeahead">

yabo亚博体育会员通道

亚历山大宋

Initializes an input with a typeahead.

///费耶诺德吧

Find out what's happening, right now, with the people and organizations you care about.

Visit link
© 365体育在线 Copyright © 2013.Company name All rights reserved.即刻工作室 Collect from 即刻工作室