dattatable 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ export interface IDocumentsProps {
21
21
  enableSearch?: boolean;
22
22
  listName: string;
23
23
  query?: Types.IODataQuery;
24
+ onActionsRendered?: (el: HTMLElement, col: Components.ITableColumn, file: Types.SP.Attachment | Types.SP.File) => void;
24
25
  onFilterRendered?: (el: HTMLElement) => void;
25
26
  onItemFormEditing?: {
26
27
  onCreateEditForm?: (props: Components.IListFormEditProps) => Components.IListFormEditProps;
@@ -443,6 +443,7 @@ var Documents = /** @class */ (function () {
443
443
  _this.renderActionButtons(el, file);
444
444
  // Call the custom event
445
445
  customEvent ? customEvent(el, col, file) : null;
446
+ _this._props.onActionsRendered ? _this._props.onActionsRendered(el, col, file) : null;
446
447
  };
447
448
  }
448
449
  else {
@@ -598,7 +599,7 @@ var Documents = /** @class */ (function () {
598
599
  content: "Delete",
599
600
  btnProps: {
600
601
  // Render the icon button
601
- className: "p-1",
602
+ className: "p-1 btn-actions-delete",
602
603
  iconType: x_1.x,
603
604
  iconSize: 24,
604
605
  isDisabled: !this.CanDelete,
@@ -634,7 +635,7 @@ var Documents = /** @class */ (function () {
634
635
  content: "Download",
635
636
  btnProps: {
636
637
  // Render the icon button
637
- className: "p-1",
638
+ className: "p-1 btn-actions-download",
638
639
  iconType: fileEarmarkArrowDown_1.fileEarmarkArrowDown,
639
640
  iconSize: 24,
640
641
  isDisabled: !this.CanView,
@@ -651,7 +652,7 @@ var Documents = /** @class */ (function () {
651
652
  content: "Edit",
652
653
  btnProps: {
653
654
  // Render the icon button
654
- className: "p-1",
655
+ className: "p-1 btn-actions-edit",
655
656
  iconType: inputCursorText_1.inputCursorText,
656
657
  iconSize: 24,
657
658
  isDisabled: (!isWopi || !this.CanEdit),
@@ -669,7 +670,7 @@ var Documents = /** @class */ (function () {
669
670
  content: "Properties",
670
671
  btnProps: {
671
672
  // Render the icon button
672
- className: "p-1",
673
+ className: "p-1 btn-actions-properties",
673
674
  iconType: layoutTextSidebar_1.layoutTextSidebar,
674
675
  iconSize: 24,
675
676
  isDisabled: !this.CanEdit && !this.CanView,
@@ -762,7 +763,7 @@ var Documents = /** @class */ (function () {
762
763
  content: "View",
763
764
  btnProps: {
764
765
  // Render the icon button
765
- className: "img-flip-x p-1",
766
+ className: "img-flip-x p-1 btn-actions-view",
766
767
  iconType: front_1.front,
767
768
  iconSize: 24,
768
769
  isDisabled: !this.CanView,