Update new functions
This commit is contained in:
@@ -37,7 +37,7 @@ const BasicDemo = () => {
|
||||
Alert({ type: 'error', message: 'An error occurred while processing your request.' })
|
||||
]);
|
||||
};
|
||||
$mount(BasicDemo, '#demo-basic');
|
||||
Mount(BasicDemo, '#demo-basic');
|
||||
```
|
||||
|
||||
### Soft vs Solid Variants
|
||||
@@ -58,7 +58,7 @@ const VariantsDemo = () => {
|
||||
Alert({ type: 'success', soft: false, message: 'Solid success alert' })
|
||||
]);
|
||||
};
|
||||
$mount(VariantsDemo, '#demo-variants');
|
||||
Mount(VariantsDemo, '#demo-variants');
|
||||
```
|
||||
|
||||
### With Actions
|
||||
@@ -107,7 +107,7 @@ const ActionsDemo = () => {
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(ActionsDemo, '#demo-actions');
|
||||
Mount(ActionsDemo, '#demo-actions');
|
||||
```
|
||||
|
||||
### Dismissible Alert
|
||||
@@ -138,7 +138,7 @@ const DismissibleDemo = () => {
|
||||
}, 'Show Alert') : null
|
||||
]);
|
||||
};
|
||||
$mount(DismissibleDemo, '#demo-dismissible');
|
||||
Mount(DismissibleDemo, '#demo-dismissible');
|
||||
```
|
||||
|
||||
### Reactive Alert
|
||||
@@ -178,7 +178,7 @@ const ReactiveDemo = () => {
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(ReactiveDemo, '#demo-reactive');
|
||||
Mount(ReactiveDemo, '#demo-reactive');
|
||||
```
|
||||
|
||||
### Form Validation
|
||||
@@ -245,7 +245,7 @@ const FormDemo = () => {
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(FormDemo, '#demo-form');
|
||||
Mount(FormDemo, '#demo-form');
|
||||
```
|
||||
|
||||
### Icon Alerts
|
||||
@@ -266,7 +266,7 @@ const IconsDemo = () => {
|
||||
Alert({ type: 'error', message: 'Error alert with custom icon' })
|
||||
]);
|
||||
};
|
||||
$mount(IconsDemo, '#demo-icons');
|
||||
Mount(IconsDemo, '#demo-icons');
|
||||
```
|
||||
|
||||
### All Types
|
||||
@@ -287,7 +287,7 @@ const AllTypesDemo = () => {
|
||||
Alert({ type: 'error', message: '❌ This is an error alert' })
|
||||
]);
|
||||
};
|
||||
$mount(AllTypesDemo, '#demo-all');
|
||||
Mount(AllTypesDemo, '#demo-all');
|
||||
```
|
||||
|
||||
<script>
|
||||
@@ -305,7 +305,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
Alert({ type: 'error', message: 'An error occurred while processing your request.' })
|
||||
]);
|
||||
};
|
||||
$mount(BasicDemo, basicTarget);
|
||||
Mount(BasicDemo, basicTarget);
|
||||
}
|
||||
|
||||
// 2. Soft vs Solid Variants
|
||||
@@ -319,7 +319,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
Alert({ type: 'success', soft: false, message: 'Solid success alert' })
|
||||
]);
|
||||
};
|
||||
$mount(VariantsDemo, variantsTarget);
|
||||
Mount(VariantsDemo, variantsTarget);
|
||||
}
|
||||
|
||||
// 3. With Actions
|
||||
@@ -361,7 +361,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(ActionsDemo, actionsTarget);
|
||||
Mount(ActionsDemo, actionsTarget);
|
||||
}
|
||||
|
||||
// 4. Dismissible Alert
|
||||
@@ -385,7 +385,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
}, 'Show Alert') : null
|
||||
]);
|
||||
};
|
||||
$mount(DismissibleDemo, dismissibleTarget);
|
||||
Mount(DismissibleDemo, dismissibleTarget);
|
||||
}
|
||||
|
||||
// 5. Reactive Alert
|
||||
@@ -418,7 +418,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(ReactiveDemo, reactiveTarget);
|
||||
Mount(ReactiveDemo, reactiveTarget);
|
||||
}
|
||||
|
||||
// 6. Form Validation
|
||||
@@ -478,7 +478,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
}) : null
|
||||
]);
|
||||
};
|
||||
$mount(FormDemo, formTarget);
|
||||
Mount(FormDemo, formTarget);
|
||||
}
|
||||
|
||||
// 7. Icon Alerts
|
||||
@@ -492,7 +492,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
Alert({ type: 'error', message: 'Error alert with custom icon' })
|
||||
]);
|
||||
};
|
||||
$mount(IconsDemo, iconsTarget);
|
||||
Mount(IconsDemo, iconsTarget);
|
||||
}
|
||||
|
||||
// 8. All Types
|
||||
@@ -506,7 +506,7 @@ $mount(AllTypesDemo, '#demo-all');
|
||||
Alert({ type: 'error', message: '❌ This is an error alert' })
|
||||
]);
|
||||
};
|
||||
$mount(AllTypesDemo, allTarget);
|
||||
Mount(AllTypesDemo, allTarget);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user