textarea.d.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import { SuperComponent } from '../common/src/index';
  2. export default class Textarea extends SuperComponent {
  3. options: {
  4. multipleSlots: boolean;
  5. };
  6. behaviors: string[];
  7. externalClasses: string[];
  8. properties: {
  9. cursorSpacing: {
  10. type: NumberConstructor;
  11. value: number;
  12. };
  13. adjustPosition?: {
  14. type: BooleanConstructor;
  15. value?: boolean;
  16. required?: boolean;
  17. };
  18. autofocus?: {
  19. type: BooleanConstructor;
  20. value?: boolean;
  21. required?: boolean;
  22. };
  23. autosize?: {
  24. type: BooleanConstructor;
  25. value?: boolean;
  26. required?: boolean;
  27. };
  28. confirmHold?: {
  29. type: BooleanConstructor;
  30. value?: boolean;
  31. required?: boolean;
  32. };
  33. confirmType?: {
  34. type: StringConstructor;
  35. value?: "send" | "search" | "next" | "go" | "done";
  36. required?: boolean;
  37. };
  38. disabled?: {
  39. type: BooleanConstructor;
  40. value?: boolean;
  41. required?: boolean;
  42. };
  43. externalClasses?: {
  44. type: ArrayConstructor;
  45. value?: ["t-class", "t-class-textarea", "t-class-placeholder", "t-class-name"];
  46. required?: boolean;
  47. };
  48. focus?: {
  49. type: BooleanConstructor;
  50. value?: boolean;
  51. required?: boolean;
  52. };
  53. label?: {
  54. type: StringConstructor;
  55. value?: string;
  56. required?: boolean;
  57. };
  58. maxcharacter?: {
  59. type: NumberConstructor;
  60. value?: number;
  61. required?: boolean;
  62. };
  63. maxlength?: {
  64. type: NumberConstructor;
  65. value?: number;
  66. required?: boolean;
  67. };
  68. placeholder?: {
  69. type: StringConstructor;
  70. value?: string;
  71. required?: boolean;
  72. };
  73. value?: {
  74. type: StringConstructor;
  75. value?: string;
  76. required?: boolean;
  77. };
  78. };
  79. data: {
  80. prefix: string;
  81. classPrefix: string;
  82. count: number;
  83. };
  84. lifetimes: {
  85. ready(): void;
  86. };
  87. methods: {
  88. updateValue(value: any): void;
  89. onInput(event: any): void;
  90. onFocus(event: any): void;
  91. onBlur(event: any): void;
  92. onConfirm(event: any): void;
  93. onLineChange(event: any): void;
  94. };
  95. }