MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / setOptionSelectedStatus

Function setOptionSelectedStatus

lib/test/angular/1.8.0/angular.js:35002–35012  ·  view source on GitHub ↗
(optionEl, value)

Source from the content-addressed store, hash-verified

35000var noopNgModelController = { $setViewValue: noop, $render: noop };
35001
35002function setOptionSelectedStatus(optionEl, value) {
35003 optionEl.prop('selected', value);
35004 /**
35005 * When unselecting an option, setting the property to null / false should be enough
35006 * However, screenreaders might react to the selected attribute instead, see
35007 * https://github.com/angular/angular.js/issues/14419
35008 * Note: "selected" is a boolean attr and will be removed when the "value" arg in attr() is false
35009 * or null
35010 */
35011 optionEl.attr('selected', value);
35012}
35013
35014/**
35015 * @ngdoc type

Callers 2

angular.jsFile · 0.70
selectPreLinkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected