Lines Matching refs:selected

145      * @description Boolean indicating if multiple children can be selected at 
166 * @description Returns the currently selected child Widget. If the
168 * return an Y.ArrayList instance containing the currently selected
169 * children. If no children are selected, will return null.
181 selected: {
185 // selected attribute can be set to the following:
186 // 0 - Not selected
187 // 1 - Fully selected (all children are selected). In order for
188 // all children to be selected, multiple selection must be
189 // enabled. Therefore, you cannot set the "selected" attribute
191 // 2 - Partially selected, meaning one ore more (but not all)
192 // children are selected.
197 Y.log('The selected attribute can only be set to 1 if the "multiple" attribute is set to true.', "error", "widget");
237 * parent's <code>selected</code> attribute.
248 selectedVal = 0; // Not selected
253 selectedVal = 2; // Assume partially selected, confirm otherwise
259 selectedVal = 1; // Fully selected
265 this.set("selected", selectedVal, { src: this });
289 * Attribute change listener for the <code>selected</code>
290 * attribute, responsible for syncing the selected state of all children to
311 child.set("selected", value, { src: this });
331 selected;
335 selected = [];
339 if (v.get("selected") > 0) {
340 selected.push(v);
345 if (selected.length > 0) {
346 selection = selected;
352 if (child.get("selected") > 0) {
364 * Attribute change listener for the <code>selected</code>
385 // Deselect the previously selected child.
389 selection.set("selected", 0, { src: "_updateSelection" });
522 if (child.get("selected")) {
523 child.set("selected", 0);
680 * @param {Number} i the index of the child to be selected
683 this.item(i).set('selected', 1);
692 this.set("selected", 1);
701 this.set("selected", 0);