mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -26,6 +26,10 @@ test('loading: backdrop standalone', async () => {
|
||||
await testLoading(DIRECTORY, '#backdrop-loading');
|
||||
});
|
||||
|
||||
test('loading: html content basic', async () => {
|
||||
await testLoading(DIRECTORY, '#html-content-loading');
|
||||
});
|
||||
|
||||
/**
|
||||
* RTL Tests
|
||||
*/
|
||||
@@ -53,3 +57,7 @@ test('loading:rtl: custom class basic', async () => {
|
||||
test('loading:rtl: backdrop standalone', async () => {
|
||||
await testLoading(DIRECTORY, '#backdrop-loading', true);
|
||||
});
|
||||
|
||||
test('loading:rtl: html content basic', async () => {
|
||||
await testLoading(DIRECTORY, '#html-content-loading', true);
|
||||
});
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<ion-button id="translucent-loading" expand="block" onclick="presentLoadingWithOptions({duration: 5000, message: 'Please wait...', translucent: true})">Show Loading with translucent</ion-button>
|
||||
<ion-button id="custom-class-loading" expand="block" onclick="presentLoadingWithOptions({duration: 5000,message: 'Please wait...', cssClass: 'custom-class custom-loading'})">Show Loading with cssClass</ion-button>
|
||||
<ion-button id="backdrop-loading" expand="block" onclick="presentLoadingWithOptions({backdropDismiss: true})">Show Backdrop Click Loading</ion-button>
|
||||
<ion-button id="html-content-loading" expand="block" onclick="presentLoadingWithOptions({cssClass: 'html-loading', duration: 5000, message: '<ion-button>Click impatiently to load faster</ion-button>'})">Show Loading with HTML content</ion-button>
|
||||
|
||||
<ion-loading-controller></ion-loading-controller>
|
||||
|
||||
@@ -82,6 +83,10 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.html-loading {
|
||||
--max-width: auto;
|
||||
}
|
||||
|
||||
.custom-loading {
|
||||
--background: rgba(37, 210, 223, 0.8);
|
||||
--spinner-color: white;
|
||||
|
||||
Reference in New Issue
Block a user