Code Monkey home page Code Monkey logo

kevingostomski / bootstrap-nice-select Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 1.12 MB

Creates a modern looking select field for form submits which can be customized. It is built with Bootstrap and does not need jQuery to be initialized

Home Page: https://kevingostomski.github.io/bootstrap-nice-select/

License: MIT License

JavaScript 10.29% SCSS 81.69% HTML 7.65% Ruby 0.36%
bootstrap bootstrap-nice-select bootstrap4 bootstrap5 dropdown javascript select ui ux

bootstrap-nice-select's People

Contributors

kevingostomski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bootstrap-nice-select's Issues

[Feature] Animation on Popup Opening and Closing

Create an animation for the popup if you open and close it. Should be handled with the already created data-animation if you want to toggle it off like currently for the .bootstrapNiceSelect('open') and .bootstrapNiceSelect('close') methods.

[Bug] Only Search after input ends a few milliseconds

Search gets triggered after directly entering a letter in the autocomplete popup search field. There should be a short time duration, before the actual search is triggered because if you are using async/await or an AJAX call, there will be uneccessary load time

[Bug] Remove Tag creation on pressing Enter

When pressing Enter and the component is inside a <form> tag, the form gets standardized submitted so there should be no tag creation on clicking 'Enter', even if it is not inside a <form> so the helper text can be changed and the js code can be updated

[Bug] Keyboard Accessibility

When using keyboard interaction for controlling the popup or overlay and search container - on key ArrowDown when focus is on <input> element, the focus should jump to first founded search result like if you would press again Tab key if you want to change to it

[Feature] Constraining tag creation

You may control when Bootstrap-Nice-Select will allow the user to create a new tag, by adding some logic to a option named createTag to return a value of type Boolean if an invalid value is entered

[Feature] Add real Blog

Eventually when the plugin pops off, create an own blog page without redirect to the CHANGELOG file.

[Feature] Custom toolbar

Allow the creation of a custom toolbar, which will be added into the creation of the select field on the position in the following picture example:

image

[Bug] Button classes - Mobile Responsivness

In mobile view, the button icons are not centered anymore because of text truncation. Add as class "d-flex" & "align-items-center" to the delete and the add buttons automatically and the problem is solved.

Problem before:

image

After fix:

image

[Bug] Set Bootstrap version manually

When errors occur during Bootstrap version detection, there should be a possible way, to set the version manually. Currently, the plugin component fails to initialize if that happens. Need to be added ASAP.

[Bug] Button Shadows

The Button shadows need to be somehow inherit from the actual color setted through the Bootstrap classes.

[Feature] Methods for getting instance

If you initialized via HTML and you want to add an event on the <select> element, it is currently necessary to initialize it via Javascript. 2 methods needed to be added:

  • getInstance | Static method which allows you to get the dropdown instance associated to a DOM element, you can use it like this: bootstrapNiceSelect.BootstrapNiceSelect.getInstance(element)
  • getOrCreateInstance | Static method which returns a dropdown instance associated to a DOM element or create a new one in case it wasn’t initialized. You can use it like this: bootstrapNiceSelect.BootstrapNiceSelect.getOrCreateInstance(element).

[Change] Rewrite Localisation

Change current i18n to provide a standard output file with only english version, a version with all languages and output files per language

[Feature] Allow setting custom style

The following items should be possible to set custom style via template strings:

  • text from li items in the delete list
  • search container otpgroup badges
  • text from li items in search container

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.