Redo web component <cq-redo>
.
Pairs with WebComponents.cq-undo to redo changes to a drawing.
Example
<cq-undo-section>
<cq-undo class="ciq-btn">Undo</cq-undo>
<cq-redo class="ciq-btn">Redo</cq-redo>
</cq-undo-section>
Methods
-
pairUp(A)
-
Finds WebComponents.cq-undo and pairs with it to find the last undo and reverse it.
Parameters:
Name Type Description A
WebComponents.cq-undo cq-undo webcomponent
Example
document.querySelector("cq-redo").pairUp(document.querySelector("cq-undo"));