SDK / API
API reference
MySutra.render(options)
Mounts a Shadow DOM widget and returns a widget handle.
target— selector or HTMLElementtool— e.g.emi-calculatortheme—light|dark|autolocale,currency,width,compact,showBranding- Events:
onReady,onCalculate,onResult,onReset,onError,onThemeChange
Widget methods
destroy(), refresh(), update(), reset(), setTheme(), setLocale(), getResult(), getInputs()
Web component
<mysutra-tool tool="gst-calculator" theme="light" locale="en-IN" currency="INR"></mysutra-tool>
Versioning
Stable CDN path: /sdk/v1/. Alias: /sdk/latest/. Future majors ship under /sdk/v2/ without breaking v1.