type.d.ts 568 B

1234567891011121314151617181920212223242526
  1. export interface TdSwipeCellProps {
  2. disabled?: {
  3. type: BooleanConstructor;
  4. value?: boolean;
  5. };
  6. left?: {
  7. type: ArrayConstructor;
  8. value?: Array<SwipeActionItem>;
  9. };
  10. opened?: {
  11. type: null;
  12. value?: boolean | Array<boolean>;
  13. };
  14. right?: {
  15. type: ArrayConstructor;
  16. value?: Array<SwipeActionItem>;
  17. };
  18. }
  19. export interface SwipeActionItem {
  20. text?: string;
  21. icon?: string | object;
  22. className?: string;
  23. style?: string;
  24. onClick?: () => void;
  25. [key: string]: any;
  26. }