MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / Loading

Class Loading

core/src/components/loading/loading.tsx:44–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 scoped: true,
43})
44export class Loading implements ComponentInterface, OverlayInterface {
45 private readonly delegateController = createDelegateController(this);
46 private readonly lockController = createLockController();
47 private readonly triggerController = createTriggerController();
48 private customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
49 private durationTimeout?: ReturnType<typeof setTimeout>;
50
51 presented = false;
52 lastFocus?: HTMLElement;
53
54 @Element() el!: HTMLIonLoadingElement;
55
56 /** @internal */
57 @Prop() overlayIndex!: number;
58
59 /** @internal */
60 @Prop() delegate?: FrameworkDelegate;
61
62 /** @internal */
63 @Prop() hasController = false;
64
65 /**
66 * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
67 */
68 @Prop() keyboardClose = true;
69
70 /**
71 * Animation to use when the loading indicator is presented.
72 */
73 @Prop() enterAnimation?: AnimationBuilder;
74
75 /**
76 * Animation to use when the loading indicator is dismissed.
77 */
78 @Prop() leaveAnimation?: AnimationBuilder;
79
80 /**
81 * Optional text content to display in the loading indicator.
82 *
83 * This property accepts custom HTML as a string.
84 * Content is parsed as plaintext by default.
85 * `innerHTMLTemplatesEnabled` must be set to `true` in the Ionic config
86 * before custom HTML can be used.
87 */
88 @Prop() message?: string | IonicSafeString;
89
90 /**
91 * Additional classes to apply for custom CSS. If multiple classes are
92 * provided they should be separated by spaces.
93 */
94 @Prop() cssClass?: string | string[];
95
96 /**
97 * Number of milliseconds to wait before dismissing the loading indicator.
98 */
99 @Prop() duration = 0;
100
101 /**

Callers

nothing calls this directly

Calls 5

dismissMethod · 0.95
createDelegateControllerFunction · 0.90
createLockControllerFunction · 0.90
createTriggerControllerFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected