Skip to content

Releases: leocaseiro/angular-chosen

Disable Chosen for Mobile devices

04 Jul 13:57
Compare
Choose a tag to compare

The directive shouldn't be available for mobile devices. Chosen by itself doesn't work.
You can read more about it at Chosen Oficial repo.

If you are interested in enabling an autocomplete for your mobile devices (big list), I recommend trying another library, such as Typeahead

Bump to 1.4.1

03 Jul 22:25
Compare
Choose a tag to compare

Make sure files on dist are up to date.

Fix ng-if issues

22 Mar 20:18
Compare
Choose a tag to compare
  • Fix ng-if breaks inherit-select-classes #179
  • Add unit tests thanks to @lpsBetty and @kfarst
  • Fix not working well in tabs (ui.bootstrap.tabs) #53

The release 1.4.0 adds a $timeout at the first run of chosen(), so we had to add $timeout.flush() for our tests.

Add option to create/add new item or just listen type-text

12 Mar 22:10
Compare
Choose a tag to compare

Fix #154 #148 and #112

I've added v.1.3.0 compatibility with the Forked Chosen from @koenpunt, so we're able to add/create new item.

First step is switch from oficial chosen.js and chosen.css to koenpunt/chosen versions.
You can download it here: https://github.com/koenpunt/chosen/releases

Then, you'll have 4 new attributes: create-option-text, persistent-create-option, skip-no-results and create-option

To Create new option, use like that:

$scope.name = 'Multiple Angular Chosen Example add new option';
  $scope.state = ['California', 'Arizona'];
  $scope.states = [
    'Alaska',
    'Arizona',
    'Arkansas',
    'California'
  ];

  $scope.createOption = function(term) {
    $scope.$apply(function() {
      $scope.states.push(term);
      $scope.state.push(term);
    });
  }
<select multiple
        chosen
        create-option-text="'Create item'"
        persistent-create-option="true"
        skip-no-results="true"
        create-option="createOption"
        ng-model="state"
        ng-options="s for s in states">
  <option value=""></option>
</select>

Here is an example working http://plnkr.co/edit/xZ5XbO?p=preview

Release 1.2.1

12 Mar 07:53
Compare
Choose a tag to compare
  • Observe attributes and update options on change. Update default text on every attribute update. #128
  • Allow Angular to use jqLite #88
  • Add mobile choosen check code #79
  • Updated NG_OPTIONS_REGEXP to ng's new version #74
  • Keep a disabled select disabled when options change. #46

Release 1.2.0 with ./dist/angular-chosen.min.js

01 Mar 10:45
Compare
Choose a tag to compare

WARNING: Since the version 1.2.0 the file ./chosen.js is deprecated and you must include ./dist/angular-chosen.js or ./dist/angular-chosen.min.js instead

Fix ng-disabled before startLoading, add attr allow-empty-results-list, more...

28 Feb 01:07
Compare
Choose a tag to compare
  • Fix issue with ng-disabled before startLoading #55 #85 #101 #111 #117 #131 #136
  • Enables the use of angular bracket expressions for placeholder-text-single #115
  • Fix Safari Mobile "Cannot read property 'default_text' of undefined" #164
  • Added new attribute "allow-empty-results-list" #124

Fix Compatibility with AngularJS 1.4.9+

24 Feb 11:21
Compare
Choose a tag to compare

Thank you @akotlar for the quick fix.

Now triggers post-pageload

12 Jan 15:23
Compare
Choose a tag to compare

Now triggers post-pageload, merge request from @gaui

Link to chosen thingy

19 Mar 14:15
Compare
Choose a tag to compare
Merge pull request #43 from kbdaitch/master

Use compiled JS zip for chosen