HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
Bootstrap Colorpicker 2.0

![Build Status](https://travis-ci.org/mjolnic/bootstrap-colorpicker.png)

Originally written by Stefan Petre

Read the documentation here

Contributing

  • All the sources are compiled using Grunt, please do not modify dist files directly
  • If you modify some source code, please recompile the project dist files
  • Check that the index.html demos aren't broken (modify if necessary)
  • Test your code at least in Chrome, Firefox and IE >= 9

Thanks =)

![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mjolnic/bootstrap-colorpicker/trend.png)

This is a fork of Stefan Petre's original code; thanks go to him for getting this thing started!

Please note that this fork is not used on Stefan's page, nor is it maintained or contributed to by him.

Versions are incremented according to semver.

![Build Status](https://travis-ci.org/smalot/bootstrap-datetimepicker.png?branch=master)

Homepage

Demo page

Project forked

This project is a fork of bootstrap-datepicker project.

Home

As 'bootstrap-datetimepicker' is restricted to the date scope (day, month, year), this project aims to support too the time picking (hour, minutes).

Screenshots

Decade year view

Datetimepicker decade year view

This view allows to select the day in the selected month.

Year view

Datetimepicker year view

This view allows to select the month in the selected year.

Month view

Datetimepicker month view

This view allows to select the year in a range of 10 years.

Day view

Datetimepicker day view

This view allows to select the hour in the selected day.

Hour view

Datetimepicker hour view

This view allows to select the preset of minutes in the selected hour. The range of 5 minutes (by default) has been selected to restrict buttons quantity to an acceptable value, but it can be overrided by the minuteStep property.

Day view - meridian

Datetimepicker day view meridian

Meridian is supported in both the day and hour views. To use it, just enable the showMeridian property.

Hour view - meridian

Datetimepicker hour view meridian

Example

Attached to a field with the format specified via options:

```html <input type="text" value="2012-05-15 21:05" id="datetimepicker"> javascript $('#datetimepicker').datetimepicker({ format: 'yyyy-mm-dd hh:ii' }); ```

Attached to a field with the format specified via markup:

```html <input type="text" value="2012-05-15 21:05" id="datetimepicker" data-date-format="yyyy-mm-dd hh:ii"> javascript $('#datetimepicker').datetimepicker(); ```

As component:

```html <div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy"> <input size="16" type="text" value="12-02-2012" readonly>=""> javascript $('#datetimepicker').datetimepicker(); ```

As inline datetimepicker:

```html

javascript $('#datetimepicker').datetimepicker(); ```

Using bootstrap-datetimepicker.js

Call the datetimepicker via javascript:

```javascript $('.datetimepicker').datetimepicker() ```

Dependencies

Requires bootstrap's dropdown component (dropdowns.less) for some styles, and bootstrap's sprites (sprites.less and associated images) for arrows.

A standalone .css file (including necessary dropdown styles and alternative, text-based arrows) can be generated by running build/build_standalone.less through the lessc compiler:

```bash $ lessc build/build_standalone.less datetimepicker.css ```

Options

All options that take a "Date" can handle a Date object; a String formatted according to the given format; or a timedelta relative to today, eg '-1d', '+6m +1y', etc, where valid units are 'd' (day), 'w' (week), 'm' (month), and 'y' (year).

You can also specify an ISO-8601 valid datetime, despite of the given format :

  • yyyy-mm-dd
  • yyyy-mm-dd hh:ii
  • yyyy-mm-ddThh:ii
  • yyyy-mm-dd hh:ii:ss
  • yyyy-mm-ddThh:ii:ssZ

format

String. Default: 'mm/dd/yyyy'

The date format, combination of p, P, h, hh, i, ii, s, ss, d, dd, m, mm, M, MM, yy, yyyy.

  • p : meridian in lower case ('am' or 'pm') - according to locale file
  • P : meridian in upper case ('AM' or 'PM') - according to locale file
  • s : seconds without leading zeros
  • ss : seconds, 2 digits with leading zeros
  • i : minutes without leading zeros
  • ii : minutes, 2 digits with leading zeros
  • h : hour without leading zeros - 24-hour format
  • hh : hour, 2 digits with leading zeros - 24-hour format
  • H : hour without leading zeros - 12-hour format
  • HH : hour, 2 digits with leading zeros - 12-hour format
  • d : day of the month without leading zeros
  • dd : day of the month, 2 digits with leading zeros
  • m : numeric representation of month without leading zeros
  • mm : numeric representation of the month, 2 digits with leading zeros
  • M : short textual representation of a month, three letters
  • MM : full textual representation of a month, such as January or March
  • yy : two digit representation of a year
  • yyyy : full numeric representation of a year, 4 digits

weekStart

Integer. Default: 0

Day of the week start. 0 (Sunday) to 6 (Saturday)

startDate

Date. Default: Beginning of time

The earliest date that may be selected; all earlier dates will be disabled.

endDate

Date. Default: End of time

The latest date that may be selected; all later dates will be disabled.

daysOfWeekDisabled

String, Array. Default: '', []

Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: disable weekends: '0,6' or [0,6].

autoclose

Boolean. Default: false

Whether or not to close the datetimepicker immediately when a date is selected.

startView

Number, String. Default: 2, 'month'

The view that the datetimepicker should show when it is opened. Accepts values of :

  • 0 or 'hour' for the hour view
  • 1 or 'day' for the day view
  • 2 or 'month' for month view (the default)
  • 3 or 'year' for the 12-month overview
  • 4 or 'decade' for the 10-year overview. Useful for date-of-birth datetimepickers.

minView

Number, String. Default: 0, 'hour'

The lowest view that the datetimepicker should show.

maxView

Number, String. Default: 4, 'decade'

The highest view that the datetimepicker should show.

todayBtn

Boolean, "linked". Default: false

If true or "linked", displays a "Today" button at the bottom of the datetimepicker to select the current date. If true, the "Today" button will only move the current date into view; if "linked", the current date will also be selected.

todayHighlight

Boolean. Default: false

If true, highlights the current date.

keyboardNavigation

Boolean. Default: true

Whether or not to allow date navigation by arrow keys.

language

String. Default: 'en'

The two-letter code of the language to use for month and day names. These will also be used as the input's value (and subsequently sent to the server in the case of form submissions). Currently ships with English ('en'), German ('de'), Brazilian ('br'), and Spanish ('es') translations, but others can be added (see I18N below). If an unknown language code is given, English will be used.

forceParse

Boolean. Default: true

Whether or not to force parsing of the input value when the picker is closed. That is, when an invalid date is left in the input field by the user, the picker will forcibly parse that value, and set the input's value to the new, valid date, conforming to the given format.

minuteStep

Number. Default: 5

The increment used to build the hour view. A button is created for each minuteStep minutes.

pickerReferer : deprecated

String. Default: 'default'

The referer element to place the picker for the component implementation. If you want to place the picker just under the input field, just specify input.

pickerPosition

String. Default: 'bottom-right' (supported values are: 'bottom-right', 'bottom-left', 'top-right', 'top-left')

This option allows to place the picker just under the input field for the component implementation instead of the default position which is at the bottom right of the button.

viewSelect

Number or String. Default: same as minView (supported values are: 'decade', 'year', 'month', 'day', 'hour')

With this option you can select the view from which the date will be selected. By default it's the last one, however you can choose the first one, so at each click the date will be updated.

showMeridian

Boolean. Default: false

This option will enable meridian views for day and hour views.

initialDate

Date or String. Default: new Date()

You can initialize the viewer with a date. By default it's now, so you can specify yesterday or today at midnight ...

onRender

This event is fired when a day is rendered inside the datepicker. Should return a string. Return 'disabled' to disable the day from being selected.

```javascript $('date-end') .datetimepicker({ onRender: function(date) { return ev.date.valueOf() < date-start-display.valueOf() ? ' disabled' : ''; } }); ```

Markup

Format as component.

```html <div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy"> <input class="span2" size="16" type="text" value="12-02-2012"> ```

Format as component with reset button to clear the input field.

```html <div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy"> <input class="span2" size="16" type="text" value="12-02-2012"> ```

Methods

.datetimepicker(options)

Initializes an datetimepicker.

remove

Arguments: None

Remove the datetimepicker. Removes attached events, internal attached objects, and added HTML elements.

$('#datetimepicker').datetimepicker('remove');

show

Arguments: None

Show the datetimepicker.

```javascript $('#datetimepicker').datetimepicker('show'); ```

hide

Arguments: None

Hide the datetimepicker.

```javascript $('#datetimepicker').datetimepicker('hide'); ```

update

Arguments:

  • currentDate (Date).

Update the datetimepicker with the specified date.

```javascript $('#datetimepicker').datetimepicker('update', new Date()); ```

Omit currentDate to update the datetimepicker with the current input value.

```javascript $('#datetimepicker').datetimepicker('update'); ```

setStartDate

Arguments:

  • startDate (String)

Sets a new lower date limit on the datetimepicker.

```javascript $('#datetimepicker').datetimepicker('setStartDate', '2012-01-01'); ```

Omit startDate (or provide an otherwise falsey value) to unset the limit.

```javascript $('#datetimepicker').datetimepicker('setStartDate'); $('#datetimepicker').datetimepicker('setStartDate', null); ```

setEndDate

Arguments:

  • endDate (String)

Sets a new upper date limit on the datetimepicker.

```javascript $('#datetimepicker').datetimepicker('setEndDate', '2012-12-31'); ```

Omit endDate (or provide an otherwise falsey value) to unset the limit.

```javascript $('#datetimepicker').datetimepicker('setEndDate'); $('#datetimepicker').datetimepicker('setEndDate', null); ```

setDaysOfWeekDisabled

Arguments:

  • daysOfWeekDisabled (String|Array)

Sets the days of week that should be disabled.

```javascript $('#datetimepicker').datetimepicker('setDaysOfWeekDisabled', [0,6]); ```

Omit daysOfWeekDisabled (or provide an otherwise falsey value) to unset the disabled days.

```javascript $('#datetimepicker').datetimepicker('setDaysOfWeekDisabled'); $('#datetimepicker').datetimepicker('setDaysOfWeekDisabled', null); ```

Events

Datetimepicker class exposes a few events for manipulating the dates.

show

Fired when the date picker is displayed.

hide

Fired when the date picker is hidden.

changeDate

Fired when the date is changed.

```javascript $('date-end') .datetimepicker() .on('changeDate', function(ev){ if (ev.date.valueOf() < date-start-display.valueOf()){ .... } }); ```

changeYear

Fired when the view year is changed from decade view.

changeMonth

Fired when the view month is changed from year view.

outOfRange

Fired when you pick a date before the startDate or after the endDate or when you specify a date via the method setDate or setUTCDate..

Keyboard support

The datetimepicker includes some keyboard navigation:

up, down, left, right arrow keys

By themselves, left/right will move backward/forward one day, up/down will move back/forward one week.

With the shift key, up/left will move backward one month, down/right will move forward one month.

With the ctrl key, up/left will move backward one year, down/right will move forward oone year.

Shift+ctrl behaves the same as ctrl – that is, it does not change both month and year simultaneously, only the year.

escape

The escape key can be used to hide and re-show the datetimepicker; this is necessary if the user wants to manually edit the value.

enter

When the picker is visible, enter will simply hide it. When the picker is not visible, enter will have normal effects – submitting the current form, etc.

Mouse Wheel View Navigation

In order to make this plugin easier to set different part of date time, mouse wheel has been used to navigate through different views. Scroll up your mouse wheel to navigate to the decade year view. Scroll down will lead to the minute view.

Dependency

To enalbe this feature. jQuery Mouse Wheel Plugin must be included before using this feature.

Options

wheelViewModeNavigation

Boolean. Default: false

Whether or not to enable navigating through different view mode using mouse wheel.

wheelViewModeNavigationInverseDirection

Boolean. Default: false

Whether or not to reverse the direction of scrolling. Default is scroll up to the decade view.

wheelViewModeNavigationDelay

Integer. Default: 100

Time delays between the next respond to the wheel command, it controls the speed between switching in different views. Unit is in million seconds.

About viewSelect option

The recommended value for viewSelect option is 4 when this feature is enable. That means you can easily update any the value in every view. This option value is applied in the demo page.

Feature Demo

A simple Demo page is given to show it's simple idea.

I18N

The plugin supports i18n for the month and weekday names and the weekStart option. The default is English ('en'); other available translations are avilable in the js/locales/ directory, simply include your desired locale after the plugin. To add more languages, simply add a key to $.fn.datetimepicker.dates, before calling .datetimepicker(). Example:

```javascript $.fn.datetimepicker.dates['en'] = { days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], today: "Today" }; ```

You can override the default date format in the language configuration with format attribute. Example:

```javascript $.fn.datetimepicker.dates['pt-BR'] = { format: 'dd/mm/yyyy' }; ```

Right-to-left languages may also include rtl: true to make the calendar display appropriately.

If your browser (or those of your users) is displaying characters wrong, chances are the browser is loading the javascript file with a non-unicode encoding. Simply add charset="UTF-8" to your script tag:

```html <script type="text/javascript" src="bootstrap-datetimepicker.de.js" charset="UTF-8"></script> ```

Markdown editing meet Bootstrap.

Version Compatibility with Bootstrap
Bootstrap Markdown v2.x only compatible with Bootstrap 3.x
Bootstrap Markdown v1.x only compatible with Bootstrap 2.x

Demo and documentation on http://toopay.github.com/bootstrap-markdown/

LICENSE

Copyright 2013 Taufan Aditya

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at > http://www.apache.org/licenses/LICENSE-2.0 > Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

![Dependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch.svg?theme=shields.io) ![devDependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch/dev-status.svg?theme=shields.io) ![NPM Version](http://img.shields.io/npm/v/bootstrap-switch.svg) ![Gittip LostCrew](http://img.shields.io/gittip/LostCrew.svg)

Turn checkboxes and radio buttons in toggle switches.

Demo and Documentation

http://www.bootstrap-switch.org

Usage

Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript:

``` html [...] <link href="bootstrap.css" rel="stylesheet"> <link href="bootstrap-switch.css" rel="stylesheet"> <script src="jquery.js"></script> <script src="bootstrap-switch.js"></script> [...] ```

Add your checkbox:

```html <input type="checkbox" name="my-checkbox" checked>=""> ```

Initialize Bootstrap Switch on it:

```javascript $("[name='my-checkbox']").bootstrapSwitch(); ```

Enjoy.

Less

If you want to use your bootstrap variables, include bootstrap-switch.less in your compilation stack. You can even choose among Bootstrap versions 2.3.2 or 3.*.* compatible source.

AngularJs

A custom directive is available here

Supported browsers

IE8+ and all the other modern browsers (until proven otherwise: submit a issue and let's see what we can do).

License

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0

Timepicker for Twitter Bootstrap 2.x ![Build Status](https://secure.travis-ci.org/jdewit/bootstrap-timepicker.png)

A simple timepicker component for Twitter Bootstrap.

Demos & Documentation

View demos & documentation.

Support

If you make money using this timepicker, please consider supporting its development.

<noscript></noscript>

Contributing

  1. Install NodeJS and Node Package Manager.
  1. Install packages

``` bash npm install ```

  1. Use Bower to get the dev dependencies.

``` bash $ bower install ```

  1. Use Grunt to run tests, compress assets, etc.

``` bash $ grunt test // run jshint and jasmine tests $ grunt watch // run jsHint and Jasmine tests whenever a file is changed $ grunt compile // minify the js and css files $ grunt gh-pages // push updates to gh-pages $ grunt bump:[patch/minor/major] // bump the version ```

  • Please make it easy on me by covering any new features or issues with Jasmine tests.
  • If your changes need documentation, please take the time to update the docs.

Acknowledgements

Thanks to everyone who have given feedback and submitted pull requests. A list of all the contributors can be found here.

Special thanks to and his Twitter Datepicker for inspiration.

This Twitter Bootstrap plugin builds a wizard using a formatted tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.

Website & Demo

Follow

Requirements

  • Requires jQuery v1.3.2 or later
  • Bootstrap 2.2.x, 2.3.x, 3.0

Code Examples

```javascript //basic wizard .ready(function() { $('#rootwizard').bootstrapWizard(); }); ```

```javascript //wizard with options and events .ready(function() { $('#rootwizard').bootstrapWizard({ tabClass: 'nav nav-pills', onNext: function(tab, navigation, index) { alert('next'); } }); }); ```

```javascript //calling a method $('#rootwizard').bootstrapWizard('show',3); ```

Options

Key

Default

Description </thead> <tbody>

tabClass

'nav nav-pills'

ul navigation class

nextSelector

'.wizard li.next'

next element selector

previousSelector

'.wizard li.previous'

previous element selector

firstSelector

'.wizard li.first'

first element selector

lastSelector

'.wizard li.last'

last element selector </tbody>

Events

Key

Description </thead> <tbody>

onInit

Fired when plugin is initialized

onShow

Fired when plugin data is shown

onNext

Fired when next button is clicked (return false to disable moving to the next step)

onPrevious

Fired when previous button is clicked (return false to disable moving to the previous step)

onFirst

Fired when first button is clicked (return false to disable moving to the first step)

onLast

Fired when last button is clicked (return false to disable moving to the last step)

onTabChange

Fired when a tab is changed (return false to disable moving to that tab and showing its contents)

onTabClick

Fired when a tab is clicked (return false to disable moving to that tab and showing its contents)

onTabShow

Fired when a tab content is shown (return false to disable showing that tab content) </tbody>

Methods

Key

Parameters

Description </thead> <tbody>

next

Moves to the next tab

previous

Moves to the previous tab

first

Jumps to the first tab

last

Jumps to the last tab

show

zero based index

Jumps to the specified tab

currentIndex

Returns the zero based index number for the current tab

navigationLength

Returns the number of tabs

enable

zero based index

Enables a tab, allows a user to click it (removes .disabled if the item has that class)

disable

zero based index

Disables a tab, disallows a user to click it (adds .disabled to the li element)

display

zero based index

Displays the li element if it was previously hidden

hide

zero based index

Hides the li element (will not remove it from the DOM)

remove

zero based index, optinal bool remove tab-pane element or not false by default

Removes the li element from the DOM if second argument is true will also remove the tab-pane element </tbody>

© Vadim Vincent Gabriel Follow 2012

License

The MIT License (MIT)

Copyright (c) 2013 - Vincent Gabriel & Jason Gill

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This plugin brings Spell Check As You Type (SCAYT) into CKEditor.

SCAYT is a "installation-less", using the web-services of WebSpellChecker.net. It's an out of the box solution.

Installation

  1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation.
  2. Enable the "scayt" plugin in the CKEditor configuration file (config.js):
     config.extraPlugins = 'scayt';
    

That's all. SCAYT will appear on the editor toolbar and will be ready to use.

License

Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.

See LICENSE.md for more information.

Developed in cooperation with WebSpellChecker.net.

This plugin brings Web Spell Checker (WSC) into CKEditor.

WSC is "installation-less", using the web-services of WebSpellChecker.net. It's an out of the box solution.

Installation

  1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation.
  2. Enable the "wsc" plugin in the CKEditor configuration file (config.js):
     config.extraPlugins = 'wsc';
    

That's all. WSC will appear on the editor toolbar and will be ready to use.

License

Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.

See LICENSE.md for more information.

Developed in cooperation with WebSpellChecker.net.

Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. http://ckeditor.com - See LICENSE.md for license information.

CKEditor is a text editor to be used inside web pages. It's not a replacement for desktop text editors like Word or OpenOffice, but a component to be used as part of web applications and websites.

Documentation

The full editor documentation is available online at the following address: http://docs.ckeditor.com

Installation

Installing CKEditor is an easy task. Just follow these simple steps:

  1. Download the latest version from the CKEditor website: http://ckeditor.com. You should have already completed this step, but be sure you have the very latest version.
  2. Extract (decompress) the downloaded file into the root of your website.

Note: CKEditor is by default installed in the ckeditor folder. You can place the files in whichever you want though.

Checking Your Installation

The editor comes with a few sample pages that can be used to verify that installation proceeded properly. Take a look at the samples directory.

To test your installation, just call the following page at your website:

    http://<your site>/<CKEditor installation path>/samples/index.html

For example:

    http://www.example.com/ckeditor/samples/index.html

Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

To get started, checkout examples and documentation at http://ivaynberg.github.com/select2

Use cases

  • Enhancing native selects with search.
  • Enhancing native selects with a better multi-select interface.
  • Loading data from JavaScript: easily load items via ajax and have them searchable.
  • Nesting optgroups: native selects only support one level of nested. Select2 does not have this restriction.
  • Tagging: ability to add new items on the fly.
  • Working with large, remote datasets: ability to partially load a dataset based on the search term.
  • Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.
  • Templating: support for custom rendering of results and selections.

Browser compatibility

  • IE 8+
  • Chrome 8+
  • Firefox 10+
  • Safari 3+
  • Opera 10.6+

Usage

You can source Select2 directly from a CDN like JSDliver, download it from this GitHub repo, or use one of the integrations below.

Integrations

Internationalization (i18n)

Select2 supports multiple languages by simply including the right language JS file (select2_locale_it.js, select2_locale_nl.js, etc.).

Missing a language? Just copy select2_locale_en.js.template, translate it, and make a pull request back to Select2 here on GitHub.

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/ivaynberg/select2/issues

Mailing list

Have a question? Ask on our mailing list!

selec.nosp@m.t2@g.nosp@m.oogle.nosp@m.grou.nosp@m.ps.co.nosp@m.m

https://groups.google.com/d/forum/select2

Copyright and license

Copyright 2012 Igor Vaynberg

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License.

You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License.

![build status](https://secure.travis-ci.org/twitter/typeahead.js.png?branch=master) ![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)

typeahead.js

Inspired by twitter.com's autocomplete search functionality, typeahead.js is a flexible JavaScript library that provides a strong foundation for building robust typeaheads.

The typeahead.js library consists of 2 components: the suggestion engine, Bloodhound, and the UI view, Typeahead. The suggestion engine is responsible for computing suggestions for a given query. The UI view is responsible for rendering suggestions and handling DOM interactions. Both components can be used separately, but when used together, they can provided a rich typeahead experience.

G<h2>etting Started

How you acquire typeahead.js is up to you.

Preferred method:

  • Install with [Bower]: $ bower install typeahead.js

Other methods:

Note: both bloodhound.js and typeahead.jquery.js have a dependency on jQuery 1.9+.

D<h2>ocumentation

E<h2>xamples

For some working examples of typeahead.js, visit the examples page.

B<h2>rowser Support

  • Chrome
  • Firefox 3.5+
  • Safari 4+
  • Internet Explorer 7+
  • Opera 11+

NOTE: typeahead.js is not tested on mobile browers.

Customer Support

For general questions about typeahead.js, tweet at .

For technical questions, you should post a question on Stack Overflow and tag it with typeahead.js.

I<h2>ssues

Discovered a bug? Please create an issue here on GitHub!

https://github.com/twitter/typeahead.js/issues

Versioning

For transparency and insight into our release cycle, releases will be numbered with the follow format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backwards compatibility bumps the major
  • New additions without breaking backwards compatibility bumps the minor
  • Bug fixes and misc changes bump the patch

For more information on semantic versioning, please visit http://semver.org/.

Testing

Tests are written using Jasmine and ran with Karma. To run the test suite with PhantomJS, run $ npm test.

D<h2>evelopers

If you plan on contributing to typeahead.js, be sure to read the contributing guidelines. A good starting place for new contributors are issues labeled with entry-level. Entry-level issues tend to require minor changes and provide developers a chance to get more familiar with typeahead.js before taking on more challenging work.

In order to build and test typeahead.js, you'll need to install its dev dependencies ($ npm install) and have grunt-cli installed ($ npm install -g grunt-cli). Below is an overview of the available Grunt tasks that'll be useful in development.

  • grunt build – Builds typeahead.js from source.
  • grunt lint – Runs source and test files through JSHint.
  • grunt watch – Rebuilds typeahead.js whenever a source file is modified.
  • grunt server – Serves files from the root of typeahead.js on localhost:8888. Useful for using test/playground.html for debugging/testing.
  • grunt dev – Runs grunt watch and grunt server in parallel.

M<h2>aintainers

  • You?

Authors

License

Copyright 2013 Twitter, Inc.

Licensed under the MIT License

This file exists here only for YiiBooster to be compatible with yii-auth extension which depends on Yiistrap's TbHtml.

See Issue #443 for details.

Yes, this is a nightmare and most possibly this class will be dropped in future.

![Travis CI](https://travis-ci.org/clevertech/YiiBooster.svg?branch=master) ![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/clevertech/YiiBooster/badges/quality-score.png?b=master) ![Code Coverage](https://scrutinizer-ci.com/g/clevertech/YiiBooster/badges/coverage.png?b=master)

![Latest Stable Version](https://poser.pugx.org/clevertech/yii-booster/v/stable.png) ![Total Downloads](https://poser.pugx.org/clevertech/yii-booster/downloads.png) ![Latest Unstable Version](https://poser.pugx.org/clevertech/yii-booster/v/unstable.png) ![License](https://poser.pugx.org/clevertech/yii-booster/license.png)


This is the master branch, containing work in progress on the next release. Do not think that it's a production ready version which you can safely clone into your project. If you want the latest point release, check out the 4.0.1 release


4.x.x is based on twitter Bootstrap 3.1.1 or later. If you want to use Bootstrap 2.3.2, please check out the latest 3.x.x release


YiiBooster is a widget toolkit for Yii web framework. Its main purpose is to ease building UI in Yii-based web applications utilizing the beauty of Twitter Bootstrap and several other great UI plugins developed over time by the community.

Twitter Bootstrap wrapping is based over the excellent job of Christoffer Niska called Yii-Bootstrap. We at Clevertech included his library into our own Yii project startup library, YiiBoilerplate, and started improving it in order to satisfy some of our customers' project requirements. YiiBooster is an end result of this effort.

Widgets at a glance

Overall, the following is included in YiiBooster:

Quick Start

If you want, you can clone the github repo and get the full codebase to build the distributive or documentation or just to hack something.

If you just want to use YiiBooster, you need to download the latest distributive archive. After that, consult the YiiBooster documentation website or the INSTALL.md file included in the package.

Widgets end-user documentation

Check out YiiBooster documentation website.

Contributing

Long story short: make pull requests from separate branches dedicated for individual features to master. Please see the wiki page about how to contribute to YiiBooster for details.

Bug tracker

If you find any bugs, please create an issue at issue tracker for project Github repository.

License

This work as a whole is licensed under a BSD license. Full text is included in the LICENSE file in the root of codebase.

Well-built beautifully designed web applications. > www.clevertech.biz

Debug panel for Yii 1.1 (ported from Yii 2).

![Latest Stable Version](https://poser.pugx.org/zhuravljov/yii2-debug/version.svg) ![Total Downloads](https://poser.pugx.org/zhuravljov/yii2-debug/downloads.png)

Installation

This extension is available at packagist.org and can be installed via composer by following command:

composer require --dev zhuravljov/yii2-debug.

If you want to install this extension manually just copy sources to /protected/extensions directory.

To enable toolbar in your application add following lines to config:

```php return array( 'preload' => array( 'debug', ), 'components' => array( 'debug' => array( 'class' => 'vendor.zhuravljov.yii2-debug.Yii2Debug', // composer installation //'class' => 'ext.yii2-debug.Yii2Debug', // manual installation ), 'db' => array( 'enableProfiling' => true, 'enableParamLogging' => true, ), ), ); ```

Configuration

You can customize debug panel behavior with this options:

  • enabled - enable/disable debug panel.
  • allowedIPs - list of IPs that are allowed to access debug toolbar. Default `array('127.0.0.1', '::1'). -accessExpression- additional php expression for access evaluation. -logPath- directory storing the debugger data files. This can be specified using a path alias. Default/runtime/debug. -historySize- maximum number of debug data files to keep. If there are more files generated, the oldest ones will be removed. -highlightCode- highlight code. Highlight SQL queries and PHP variables. This parameter can be set for each panel individually. -moduleId - module ID for viewing stored debug logs. Defaultdebug. -showConfig- show brief application configuration page. Defaultfalse. -hiddenConfigOptions- list of unsecure component options to hide (like login, passwords, secret keys). Default is to hideusernameandpasswordofdbcomponent. -internalUrls- use nice routes rules in debug module. -panels` - list of debug panels.

Each attached panel can be configured individually, for example:

```php 'debug' => array( 'class' => 'ext.yii2-debug.Yii2Debug', 'panels' => array( 'db' => array( // Disable code highlighting. 'highlightCode' => false, // Disable substitution of placeholders with values in SQL queries. 'insertParamValues' => false, ), ), ), ```

Each panel have callback option filterData. You can define custom function for filtering input data before writing it in to debug log. It's useful when you need to hide something secret or just delete data from logs. Be careful with data structure manipulation. It can lead to log parsing errors.

Example:

```php 'debug' => array( 'class' => 'ext.yii2-debug.Yii2Debug', 'panels' => array( 'db' => array( 'filterData' => function($data){ // Your code here return $data; } ), ), ), ```

Creating own panels

To create own debug panel you can extend class Yii2DebugPanel, for example:

```php class MyTestPanel extends Yii2DebugPanel { /**

  • The name of panel printed in debugger */ public function getName() { return 'Name'; }

/**

  • Return summary html with results of execution in current request.
  • Data is available through $this->data */ public function getSummary() { return ''; }

/**

  • Return detailed html report with results of execution in current request.
  • Data is available through $this->data */ public function getDetail() { return ''; }

/**

  • Return data required for storing in logs. */ public function save() { return array(); } } ```

And attach this panel in config:

```php 'panels' => array( 'test' => array( 'class' => 'path.to.panel.MyTestPanel', // ... ), ), ```

Variables dumping

With static method Yii2Debug::dump() you can dump any data and examine it later in debug log.

Miscellaneous

Status Code

If you using PHP < 5.4, debug panel can't detect redirects by himself. You can use following code as workaround:

```php 'panels' => array( 'request' => array( 'filterData' => function($data){ if (empty($data['statusCode'])) { if (isset($data['responseHeaders']['Location'])) { $data['statusCode'] = 302; } else { $data['statusCode'] = 200; } } return $data; }, ), ), ```

Such code just set 302 code if Location header is present. Codes like 4xx and 5xx can be detected in debug panel by himself. In PHP 5.4 and higher debug panel uses native php function http_response_code() for detecting http response code, and there is no need to use this workaround.

A simple module to have cron-like jobs in your database. In addition to yii's commands, yii-job can be used to create on-the-fly asynchronous jobs. Different kinds of jobs are supported:

  1. Jobs with crontab that are triggered at defined times.
  2. Ad-Hoc jobs that are executed at a defined time (or as soon as possible).

To actually process the jobs you can use the JobCommand, which itself can be triggered by a sytem cron job. A common scenario is system a cron job that is executed once per minute to trigger JobCommand.

Database Installing

Import data/mysql.sql into your database.

Yii Installing

In your config add the module:

```php 'modules' => array( 'yii-job' => array( ), ), ```

In your config add the JobManager component:

```php 'components'=>array( 'jobManager' => array( 'class' => 'application.modules.yii-job.components.JobManager', 'jobs' => array( array( 'class' => 'MyJob', //this is your own class that extends application.modules.yii-job.models.Job 'crontab' => '* 3 * * *' ) ) ), ), ```

Optional: add module models import for convenicence

```php 'import'=>array( 'application.modules.yii-job.models.*' ), ```

In your console config import the JobCommand

```php 'commandMap' => array( 'job' => 'application.modules.yii-job.commands.JobCommand' ), ```

Run

If you want to trigger the job processing from the command line you still need a cron job that executes the JobCommand. It should be triggers like this:

``` yiic job ```

This is the index command which will sync your jobs in the config with your database and run all jobs that are due.

Thanks

Thanks to mtdowling for providing a nice php crontab parser: https://github.com/mtdowling/cron-expression

Download

Download or checkout (SVN/Git) from http://yii-user.2mx.org and unpack files in your protected/modules/user

Git clone

clone git git@github.com:mishamx/yii-user.git

Configure

Change your config main:

return array(
    #...
    // autoloading model and component classes
    'import'=>array(
        'application.models.*',
        'application.components.*',
        'application.modules.user.models.*',
        'application.modules.user.components.*',
    ),

    #...
    'modules'=>array(
        #...
        'user'=>array(
            # encrypting method (php hash function)
            'hash' => 'md5',

            # send activation email
            'sendActivationMail' => true,

            # allow access for non-activated users
            'loginNotActiv' => false,

            # activate user on registration (only sendActivationMail = false)
            'activeAfterRegister' => false,

            # automatically login from registration
            'autoLogin' => true,

            # registration path
            'registrationUrl' => array('/user/registration'),

            # recovery password path
            'recoveryUrl' => array('/user/recovery'),

            # login form path
            'loginUrl' => array('/user/login'),

            # page after login
            'returnUrl' => array('/user/profile'),

            # page after logout
            'returnLogoutUrl' => array('/user/login'),
        ),
        #...
    ),

    #...
    // application components
    'components'=>array(
    #...
        'db'=>array(
        #...
            'tablePrefix' => 'tbl_',
        #...
        ),
        #...
        'user'=>array(
            // enable cookie-based authentication
            'class' => 'WebUser',
            'allowAutoLogin'=>true,
            'loginUrl' => array('/user/login'),
        ),
    #...
    ),
    #...
);

Change your config console:

return array(
    #...
    'modules'=>array(
        #...
        'user'=>array(
            # encrypting method (php hash function)
            'hash' => 'md5',

            # send activation email
            'sendActivationMail' => true,

            # allow access for non-activated users
            'loginNotActiv' => false,

            # activate user on registration (only sendActivationMail = false)
            'activeAfterRegister' => false,

            # automatically login from registration
            'autoLogin' => true,

            # registration path
            'registrationUrl' => array('/user/registration'),

            # recovery password path
            'recoveryUrl' => array('/user/recovery'),

            # login form path
            'loginUrl' => array('/user/login'),

            # page after login
            'returnUrl' => array('/user/profile'),

            # page after logout
            'returnLogoutUrl' => array('/user/login'),
        ),
        #...
    ),
    #...
);

Install

Run command: yiic migrate –migrationPath=user.migrations

Input admin login, email and password