MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / widgetDataValue

Function widgetDataValue

apps/OpenSign/src/constant/Utils.js:1449–1462  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

1447 return { getWidth: width, getHeight: height };
1448};
1449export const widgetDataValue = (type, value) => {
1450 switch (type) {
1451 case "name":
1452 return value?.Name || value?.name;
1453 case "company":
1454 return value?.Company || value?.company;
1455 case "job title":
1456 return value?.JobTitle || value?.jobTitle;
1457 case "email":
1458 return value?.Email || value?.email;
1459 default:
1460 return "";
1461 }
1462};
1463export const addInitialData = (signerPos, setXyPosition, value, userId) => {
1464 return signerPos.map((item) => {
1465 if (item.placeHolder && item.placeHolder.length > 0) {

Callers 3

getSignerPosFunction · 0.90
addInitialDataFunction · 0.85
updateDateWidgetsResFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected