MCPcopy Create free account
hub / github.com/adearriba/ShopifyCheckoutJS / addDescription

Method addDescription

src/Methods/ShippingMethod.js:15–23  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

13 }
14
15 addDescription(text){
16 let span = this.querySelector('.radio__label__primary');
17 let desc = document.createElement('span');
18 desc.classList.add('small-text');
19 desc.innerHTML = text;
20
21 span.appendChild(document.createElement('br'));
22 span.appendChild(desc);
23 }
24
25 /**
26 * Get the Shipping rate value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected