Opened 2 years ago

Last modified 18 months ago

#18947 new enhancement

select all method on dojox.form.CheckedMultiSelect

Reported by: vtsuper Owned by:
Priority: low Milestone: 1.14
Component: DojoX Form Version: 1.12.1
Keywords: Cc:
Blocked By: Blocking:

Description

I extended the dojox.form.CheckedMultiSelect? and create a select all method. Hoped that someone can put it into the offical release.

define(["dojo/_base/declare", "dojox/form/CheckedMultiSelect","dojo/_base/array"],
function(declare, CheckedMultiSelect, array) {
	return declare("CheckedMultiSelect", [CheckedMultiSelect], {
		selectAllSelection: function(onChange){
			// copy from invertSelection()
			if(this.multiple){
				array.forEach(this.options, function(i){
					i.selected = true;
				});
				this._updateSelection();
			}
		}
    });
});

Change History (2)

comment:1 Changed 2 years ago by dylan

Milestone: tbd1.13
Priority: undecidedlow

@vtsuper, care to create a pull request via github for consideration for 1.13?

comment:2 Changed 18 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.