MCPcopy Create free account
hub / github.com/docker/getting-started / setAttributes

Function setAttributes

app/src/static/js/react-bootstrap.js:4130–4140  ·  view source on GitHub ↗

* Set the attributes to the given popper * @method * @memberof Popper.Utils * @argument {Element} element - Element to apply the attributes to * @argument {Object} styles * Object with a list of properties and values which will be applied to the element

(element, attributes)

Source from the content-addressed store, hash-verified

4128
4129
4130function setAttributes(element, attributes) {
4131 Object.keys(attributes).forEach(function (prop) {
4132 var value = attributes[prop];
4133
4134 if (value !== false) {
4135 element.setAttribute(prop, attributes[prop]);
4136 } else {
4137 element.removeAttribute(prop);
4138 }
4139 });
4140}
4141/**
4142 * @function
4143 * @memberof Modifiers

Callers 1

applyStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…