type.d.ts 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { OverlayProps } from '../overlay/index';
  2. export interface TdDrawerProps {
  3. closeOnOverlayClick?: {
  4. type: BooleanConstructor;
  5. value?: boolean;
  6. };
  7. destroyOnClose?: {
  8. type: BooleanConstructor;
  9. value?: boolean;
  10. };
  11. items?: {
  12. type: ArrayConstructor;
  13. value?: DrawerItem[];
  14. };
  15. overlayProps?: {
  16. type: ObjectConstructor;
  17. value?: OverlayProps;
  18. };
  19. placement?: {
  20. type: StringConstructor;
  21. value?: 'left' | 'right';
  22. };
  23. showOverlay?: {
  24. type: BooleanConstructor;
  25. value?: boolean;
  26. };
  27. title?: {
  28. type: StringConstructor;
  29. value?: string;
  30. };
  31. usingCustomNavbar?: {
  32. type: BooleanConstructor;
  33. value?: boolean;
  34. };
  35. visible?: {
  36. type: BooleanConstructor;
  37. value?: boolean;
  38. };
  39. zIndex?: {
  40. type: NumberConstructor;
  41. value?: number;
  42. };
  43. }
  44. export interface DrawerItem {
  45. title: string;
  46. icon: string;
  47. }