Skip to content

Commit

Permalink
Merge branch 'release-3.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
oat-github-bot committed Sep 23, 2024
2 parents bdc902a + 0d29f39 commit 863c5c3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-core-ui",
"version": "3.7.0",
"version": "3.8.0",
"displayName": "TAO Core UI",
"description": "UI libraries of TAO",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ const dataTable = {
const disabled = getPropertyValue('disabled', action, nextData);
const icon = getPropertyValue('icon', action, nextData);
const label = getPropertyValue('label', action, nextData);
const $actionButton = $(buttonTpl({ id, icon, label, title, disabled }));
const cls = getPropertyValue('cls', action, nextData);
const $actionButton = $(buttonTpl({ id, icon, label, title, disabled, cls }));

if (!hidden) {
$actionCell.append('\n').append($actionButton);
Expand Down
2 changes: 1 addition & 1 deletion src/datatable/tpl/button.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<button class="btn-info small {{id}}"
<button class="btn-info small {{cls}} {{id}}"
{{#if title}} title="{{title}}"{{/if}}
{{#if disabled}} disabled="disabled"{{/if}}>
{{#if icon}}<span class="icon-{{icon}}"></span>{{/if}}
Expand Down
4 changes: 2 additions & 2 deletions src/datatable/tpl/layout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
{{#if id}}
{{#with ../../../../this}}
{{#unless ../hidden}}
<button class="btn-info small {{../../id}}"
<button class="btn-info small {{../../cls}} {{../../id}}"
{{#if ../../title}} title="{{../../../title}}"{{/if}}
{{#if ../../disabled}} disabled="disabled"{{/if}}>
{{#if ../../icon}}<span class="icon-{{../../../icon}}"></span>{{/if}}
Expand Down Expand Up @@ -128,7 +128,7 @@
{{#if id}}
{{#with ../../../this}}
{{#unless ../hidden}}
<button class="btn-info small {{../../id}}"
<button class="btn-info small {{../../cls}} {{../../id}}"
{{#if ../../title}} title="{{../../../title}}"{{/if}}
{{#if ../../disabled}} disabled="disabled"{{/if}}>
{{#if ../../icon}}<span class="icon-{{../../../icon}}"></span>{{/if}}
Expand Down

0 comments on commit 863c5c3

Please sign in to comment.