Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert playground/jquery.html file #27977

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 6 additions & 97 deletions packages/devextreme/playground/jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
</script>

<script type="text/javascript" src="../artifacts/js/jquery.js"></script>


<!-- HtmlEditor -->
<!-- <script type="text/javascript" src="../artifacts/js/dx-quill.min.js"></script> -->

Expand All @@ -41,7 +39,6 @@
-->

<script type="text/javascript" src="../artifacts/js/dx.all.debug.js" charset="utf-8"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/js/dx.aspnet.data.js"></script>
<script type="text/javascript" src="./themeSelector.js"></script>
<script type="text/javascript" src="../../../node_modules/axe-core/axe.min.js"></script>
</head>
Expand All @@ -52,102 +49,14 @@ <h1 style="position: fixed; left: 0; top: 0; clip: rect(1px, 1px, 1px, 1px);">Te
<select id="theme-selector" style="display: block;">
</select>
<br />

<div class="dx-viewport demo-container">
<div id="list"></div>
</div>

<div style="display: inline-flex; align-items: center; gap: 20px;">
<div>Default</div>
<div id="button"></div>
<div>Hover</div>
<div id="buttonHover"></div>
<div>Focus</div>
<div id="buttonFocus"></div>
<div>Active</div>
<div id="buttonActive"></div>
<div>Disabled</div>
<div id="buttonDisabled"></div>
</div>


<script>
$(() => {
const listData = new DevExpress.data.DataSource({
store: DevExpress.data.AspNet.createStore({
key: 'ProductID',
loadUrl: 'https://js.devexpress.com/Demos/Mvc/api/ListData/Orders',
}),
paginate: true,
loadMode: 'raw',
});

$('#list').dxList({

accessKey: 's',
dataSource: listData,
displayExpr: 'ProductName',
height: 400,
selectionMode: 'all',

showSelectionControls: true,
selectedItemKeys: [25]
});

$('#list').dxResizable()
});

$('#button').dxButton({
icon: 'send',
stylingMode: 'text',
type: 'default',
})

$('#buttonHover').dxButton({
icon: 'send',
stylingMode: 'text',
type: 'default',
onInitialized: (e) => {
setTimeout(() => {
e.component.$element().addClass('dx-state-hover')
})

}
})

$('#buttonFocus').dxButton({
icon: 'send',
stylingMode: 'text',
type: 'default',
onInitialized: (e) => {
setTimeout(() => {
e.component.$element().addClass('dx-state-focused')
})

}
})

$('#buttonActive').dxButton({
icon: 'send',
stylingMode: 'text',
type: 'default',
onInitialized: (e) => {
setTimeout(() => {
e.component.$element().addClass('dx-state-active')
})

}
})


$('#buttonDisabled').dxButton({
icon: 'send',
stylingMode: 'text',
type: 'default',
disabled: true,
})


$(function() {
$("#button").dxButton({
text: 'Click me!',
onClick: function() { alert("clicked"); }
});
});
</script>
</div>
</body>
Expand Down
Loading