MCPcopy
hub / github.com/Splidejs/splide / update

Function update

src/js/components/Elements/Elements.ts:160–172  ·  view source on GitHub ↗

* Updates the status of elements.

()

Source from the content-addressed store, hash-verified

158 * Updates the status of elements.
159 */
160 function update(): void {
161 removeClass( root, rootClasses );
162 removeClass( track, trackClasses );
163
164 rootClasses = getClasses( CLASS_ROOT );
165 trackClasses = getClasses( CLASS_TRACK );
166
167 addClass( root, rootClasses );
168 addClass( track, trackClasses );
169
170 setAttribute( root, ARIA_LABEL, options.label );
171 setAttribute( root, ARIA_LABELLEDBY, options.labelledby );
172 }
173
174 /**
175 * Collects elements which the slider consists of.

Callers 1

setupFunction · 0.70

Calls 4

removeClassFunction · 0.90
addClassFunction · 0.90
setAttributeFunction · 0.90
getClassesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…