Lines Matching refs:selected

147      * @description Boolean indicating if multiple children can be selected at 
168 * @description Returns the currently selected child Widget. If the
170 * return an Y.ArrayList instance containing the currently selected
171 * children. If no children are selected, will return null.
183 selected: {
187 // selected attribute can be set to the following:
188 // 0 - Not selected
189 // 1 - Fully selected (all children are selected). In order for
190 // all children to be selected, multiple selection must be
191 // enabled. Therefore, you cannot set the "selected" attribute
193 // 2 - Partially selected, meaning one ore more (but not all)
194 // children are selected.
199 Y.log('The selected attribute can only be set to 1 if the "multiple" attribute is set to true.', "error", "widget");
239 * parent's <code>selected</code> attribute.
250 selectedVal = 0; // Not selected
255 selectedVal = 2; // Assume partially selected, confirm otherwise
261 selectedVal = 1; // Fully selected
267 this.set("selected", selectedVal, { src: this });
291 * Attribute change listener for the <code>selected</code>
292 * attribute, responsible for syncing the selected state of all children to
313 child.set("selected", value, { src: this });
333 selected;
337 selected = [];
341 if (v.get("selected") > 0) {
342 selected.push(v);
347 if (selected.length > 0) {
348 selection = selected;
354 if (child.get("selected") > 0) {
366 * Attribute change listener for the <code>selected</code>
387 // Deselect the previously selected child.
391 selection.set("selected", 0, { src: "_updateSelection" });
524 if (child.get("selected")) {
525 child.set("selected", 0);
682 * @param {Number} i the index of the child to be selected
685 this.item(i).set('selected', 1);
694 this.set("selected", 1);
703 this.set("selected", 0);