MCPcopy Create free account
hub / github.com/Normal-Tangerine8609/Scriptable-Widgets / ChainWidget

Class ChainWidget

scripts/chaining.js:403–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402 }
403 class ChainWidget {
404 constructor() {
405 this.widget = new ListWidget();
406 }
407 backgroundColor(color) {
408 this.widget.backgroundColor = color;
409 return this;
410 }
411 backgroundGradient(gradient) {
412 this.widget.backgroundGradient = gradient;
413 return this;
414 }
415 backgroundImage(image) {
416 this.widget.backgroundImage = image;
417 return this;
418 }
419 refreshAfterDate(date) {
420 this.widget.refreshAfterDate = date;
421 return this;
422 }
423 spacing(space) {
424 this.widget.spacing = space;
425 return this;
426 }
427 url(url) {
428 this.widget.url = url;
429 return this;
430 }
431 addAccessoryWidgetBackground(bool) {
432 this.widget.addAccessoryWidgetBackground = bool;
433 return this;
434 }
435 setPadding(top, leading, bottom, trailing) {
436 this.widget.setPadding(top, leading, bottom, trailing);
437 return this;
438 }
439 useDefaultPadding() {
440 this.widget.useDefaultPadding();
441 return this;
442 }
443 presentAccessoryCircular() {
444 this.widget.presentAccessoryCircular();
445 return this;
446 }
447 presentAccessoryInline() {
448 this.widget.presentAccessoryInline();
449 return this;
450 }
451 presentAccessoryRectangular() {
452 this.widget.presentAccessoryRectangular();
453 return this;
454 }
455 presentExtraLarge() {
456 this.widget.presentExtraLarge();
457 return this;
458 }
459 presentSmall() {
460 this.widget.presentSmall();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected