Skip to content

Commit

Permalink
Fix code arrangement in jquery demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkithelegendarypokemonster committed Dec 3, 2024
1 parent 2577c3d commit 201a373
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions apps/demos/Demos/Chat/Customization/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,6 @@ $(() => {
messageTimestampFormat: messageTimestampFormat[0],
}).dxChat('instance');

$('#chat-disabled').dxCheckBox({
value: false,
text: 'Disable Chat',
onValueChanged(data) {
chat.option('disabled', data.value);
},
});

$('#show-day-headers').dxCheckBox({
value: true,
text: 'Show Day Headers',
onValueChanged(data) {
chat.option('showDayHeaders', data.value);
},
});

$('#show-message-timestamp').dxCheckBox({
value: true,
text: 'Show Message Timestamp',
onValueChanged(data) {
chat.option('showMessageTimestamp', data.value);
},
});

$('#show-avatar').dxCheckBox({
value: true,
text: 'Show Avatar',
Expand All @@ -50,6 +26,14 @@ $(() => {
},
});

$('#show-day-headers').dxCheckBox({
value: true,
text: 'Show Day Headers',
onValueChanged(data) {
chat.option('showDayHeaders', data.value);
},
});

$('#day-headers-format').dxSelectBox({
items: dayHeaderFormat,
value: dayHeaderFormat[0],
Expand All @@ -59,6 +43,14 @@ $(() => {
},
});

$('#show-message-timestamp').dxCheckBox({
value: true,
text: 'Show Message Timestamp',
onValueChanged(data) {
chat.option('showMessageTimestamp', data.value);
},
});

$('#message-timestamp-format').dxSelectBox({
items: messageTimestampFormat,
value: messageTimestampFormat[0],
Expand All @@ -67,4 +59,12 @@ $(() => {
chat.option('messageTimestampFormat', data.value);
},
});

$('#chat-disabled').dxCheckBox({
value: false,
text: 'Disable Chat',
onValueChanged(data) {
chat.option('disabled', data.value);
},
});
});

0 comments on commit 201a373

Please sign in to comment.