MCPcopy
hub / github.com/tinyplex/tinybase / widget

Function widget

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-inspector/index.js:3494–3562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3492 }
3493 };
3494 const widget = () => getTypeCase(
3495 thingType(),
3496 (() => {
3497 var _el$0 = _tmpl$7$1();
3498 _el$0.addEventListener(
3499 "input",
3500 (event) => handleThingChange(
3501 string(event[CURRENT_TARGET][_VALUE]),
3502 setStringThing
3503 )
3504 );
3505 effect(() => _el$0.value = stringThing());
3506 return _el$0;
3507 })(),
3508 (() => {
3509 var _el$1 = _tmpl$8$1();
3510 _el$1.addEventListener(
3511 "input",
3512 (event) => handleThingChange(
3513 number(event[CURRENT_TARGET][_VALUE] || 0),
3514 setNumberThing
3515 )
3516 );
3517 effect(() => _el$1.value = numberThing());
3518 return _el$1;
3519 })(),
3520 (() => {
3521 var _el$10 = _tmpl$9$1();
3522 _el$10.addEventListener(
3523 "input",
3524 (event) => handleThingChange(
3525 boolean(event[CURRENT_TARGET].checked),
3526 setBooleanThing
3527 )
3528 );
3529 effect(() => _el$10.checked = booleanThing());
3530 return _el$10;
3531 })(),
3532 (() => {
3533 var _el$11 = _tmpl$7$1();
3534 _el$11.addEventListener(
3535 "input",
3536 (event) => handleJsonThingChange(
3537 event[CURRENT_TARGET][_VALUE],
3538 setObjectThing,
3539 isObject2,
3540 setObjectClassName
3541 )
3542 );
3543 effect(() => className(_el$11, objectClassName()));
3544 effect(() => _el$11.value = objectThing());
3545 return _el$11;
3546 })(),
3547 (() => {
3548 var _el$12 = _tmpl$7$1();
3549 _el$12.addEventListener(
3550 "input",
3551 (event) => handleJsonThingChange(

Callers 1

contentFunction · 0.70

Calls 7

stringFunction · 0.85
numberFunction · 0.85
addEventListenerMethod · 0.80
getTypeCaseFunction · 0.70
handleThingChangeFunction · 0.70
handleJsonThingChangeFunction · 0.70
classNameFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…