Files
x-editable-bs5/demo/index.html
Micha 196db8febb WIP: ES6 module conversion and webpack refactoring
- Convert all IIFE modules to ES6 modules with attach functions
- Split webpack configs: lib build vs demo build
- Add UMD wrapper for auto-initialization with jQuery
- Update package.json with sequential build scripts
- Clean up legacy dist files and reorganize demo structure

Status: jQuery timing issues remain - attach functions not accessible
Next: Debug UMD factory execution and jQuery parameter passing
2025-07-31 14:38:37 +02:00

84 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./dist/bootstrap5-editable/css/bootstrap-editable.css">
<!-- <script src="./dist/bootstrap5-editable/js/bootstrap-editable.js"></script>-->
<!-- <script src="./dist/jquery.js"></script>-->
<script src="./demo/dist/app.js" type="module"></script>
<title>Bootstrap 5.3.3 Test</title>
</head>
<body>
<div class="container">
<h1 class="text-primary">jQuery 3.7.1 & Bootstrap 5.3.3 Test</h1>
</div>
<form id="test-form" action="demo/demo.php" method="post">
<div class="container mb-3">
<h3>Test X-Editable Yes/No Switch - AJAX Source</h3>
<p>Click on the text below to toggle Yes/No:</p>
<a
href="#"
id="yes-no-switch"
class="editable editable-click"
data-pk="101"
>
Yes
</a>
</div>
<div class="container mb-3">
<h3>Test X-Editable Static Source - JSON Source</h3>
<p>Click on the text below (uses static array, not AJAX):</p>
<a
href="#"
id="yes-no-switch-json"
class="editable editable-click"
data-type="select"
data-pk="102"
data-title="Select Yes/No"
>
Yes
</a>
</div>
<div class="container mb-3">
<h3>Test X-Editable Datepicker</h3>
<p>Click to select a date:</p>
<a
href="#"
id="datepicker"
class="editable editable-click"
data-type="date"
data-pk="103"
data-title="Select Date"
>
Click to select date
</a>
</div>
<div class="container mb-3">
<h3>Test X-Editable Select2 (refactored to work with select2 4.1.0-RC)</h3>
<p>Click to select from a larger list with search functionality:</p>
<a
href="#"
id="select2-test"
class="editable editable-click"
data-type="select2"
data-pk="104"
data-title="Select Country"
>
United States
</a>
</div>
</form>
</body>
</html>