Download the PHP package wdmg/bootstrap-selectinput-plugin without Composer

On this page you can find all versions of the php package wdmg/bootstrap-selectinput-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bootstrap-selectinput-plugin

Bootstrap SelectInput

Select to dropdown list for Bootstrap 3

Installation

$ npm install bootstrap-selectinput-plugin
$ bower install bootstrap-selectinput-plugin
$ yarn add bootstrap-selectinput-plugin
$ composer require bootstrap-selectinput-plugin

Usage example

For example use the form-group:

<div class="form-group">
    <label class="control-label" for="selectinput1">Select:</label>
    <select id="selectinput1" class="form-control">
        <option value="1">Select option one</option>
        <option value="2" selected>Select option two</option>
        <option value="3">Select option three</option>
        <option value="4" disabled>Select option one</option>
        <option value="5" selected>Select option two</option>
        <option value="6">Select option three</option>
    </select>
</div>
<div class="form-group">
    <label class="control-label" for="selectinput2">Multiple select:</label>
    <select id="selectinput2" multiple class="form-control">
        <option value="1">Select option one</option>
        <option value="2" selected>Select option two</option>
        <option value="3">Select option three</option>
        <option value="4" disabled>Select option one</option>
        <option value="5" selected>Select option two</option>
        <option value="6">Select option three</option>
    </select>
</div>

... and init from script:

<script type="text/javascript">
    $(document).ready(function () {
        $('select').selectinput({
            dropdownClass: '.dropdown .some-dropdown',
            toggleText: 'Select option',
            toggleCaret: '<span class="fa fa-chevron-down"></span>',
            autocomplete: 'http://example.com/api/get/options',
            ...
        });
    });
</script>

Options

Name Type Default Description
dropdownClass string '.dropdown' The class for the dropdown container.
listClass string '.dropdown-menu' Class for dropdown list.
itemClass string '.dropdown-item' Class for the item in the dropdown list.
toggleClass string '.btn .btn-default .dropdown-toggle' Class of the button for expanding the dropdown.
toggleText string 'Dropdown' Default text of the toggle button.
toggleCaret html <span class="caret"></span> Default caret of the toggle button.
toggleChange boolean true Flag if need to change the toggle button text.
autocomplete boolean / string false Autocomplete URL.
minInput integer 2 Min input lenght.
templates object inputField, autocompleteList, autocompleteItem Autocomplete component templates.
onChange function onChange() The function that is called when select option change.
onShow function onShow() The function that is called when dropdown is ready to be displayed.
onShown function onShown() The function that is called when dropdown is displayed.
onHide function onHide() The function that is called when dropdown to prepare for hiding.
onHidden function onHidden() Flag if need debug in console log.
onAutocompleteSuccess function onAutocompleteSuccess() The function is called when autocomplete successfully called an ajax request.
onAutocompleteError function onAutocompleteError() The function is called when autocomplete caused an ajax error.
onAutocompleteShow function onAutocompleteShow() The function that is called when autocomplete is ready to be displayed.
onAutocompleteShown function onAutocompleteShown() The function that is called when autocomplete is displayed.
onAutocompleteHide function onAutocompleteHide() The function that is called when autocomplete to prepare for hiding.
onAutocompleteHidden function onAutocompleteHidden() The function that is called when autocomplete is hidden.
debug boolean false The function that is called when dropdown is hidden.

Status and version


All versions of bootstrap-selectinput-plugin with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wdmg/bootstrap-selectinput-plugin contains the following files

Loading the files please wait ....