table.pyi 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. """Stub file for reflex/components/datadisplay/table.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import List, Tuple
  10. from reflex.components.component import Component
  11. from reflex.components.layout.foreach import Foreach
  12. from reflex.components.libs.chakra import ChakraComponent
  13. from reflex.utils import types
  14. from reflex.vars import Var
  15. class Table(ChakraComponent):
  16. @overload
  17. @classmethod
  18. def create( # type: ignore
  19. cls,
  20. *children,
  21. caption=None,
  22. headers=None,
  23. rows=None,
  24. footers=None,
  25. color_scheme: Optional[Union[Var[str], str]] = None,
  26. variant: Optional[Union[Var[str], str]] = None,
  27. size: Optional[Union[Var[str], str]] = None,
  28. placement: Optional[Union[Var[str], str]] = None,
  29. style: Optional[Style] = None,
  30. key: Optional[Any] = None,
  31. id: Optional[Any] = None,
  32. class_name: Optional[Any] = None,
  33. autofocus: Optional[bool] = None,
  34. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  35. on_blur: Optional[
  36. Union[EventHandler, EventSpec, list, function, BaseVar]
  37. ] = None,
  38. on_click: Optional[
  39. Union[EventHandler, EventSpec, list, function, BaseVar]
  40. ] = None,
  41. on_context_menu: Optional[
  42. Union[EventHandler, EventSpec, list, function, BaseVar]
  43. ] = None,
  44. on_double_click: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_focus: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_mount: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_mouse_down: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_mouse_enter: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_mouse_leave: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_mouse_move: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_mouse_out: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. on_mouse_over: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_mouse_up: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. on_scroll: Optional[
  75. Union[EventHandler, EventSpec, list, function, BaseVar]
  76. ] = None,
  77. on_unmount: Optional[
  78. Union[EventHandler, EventSpec, list, function, BaseVar]
  79. ] = None,
  80. **props
  81. ) -> "Table":
  82. """Create a table component.
  83. Args:
  84. *children: The children of the component.
  85. caption: The caption of the table component.
  86. headers: The headers of the table component.
  87. rows: The rows of the table component.
  88. footers: The footers of the table component.
  89. color_scheme: The color scheme of the table
  90. variant: The variant of the table style to use
  91. size: The size of the table
  92. placement: The placement of the table caption.
  93. style: The style of the component.
  94. key: A unique key for the component.
  95. id: The id for the component.
  96. class_name: The class name for the component.
  97. autofocus: Whether the component should take the focus once the page is loaded
  98. custom_attrs: custom attribute
  99. **props: The properties of the component.
  100. Returns:
  101. The table component.
  102. """
  103. ...
  104. class Thead(ChakraComponent):
  105. @overload
  106. @classmethod
  107. def create( # type: ignore
  108. cls,
  109. *children,
  110. headers=None,
  111. style: Optional[Style] = None,
  112. key: Optional[Any] = None,
  113. id: Optional[Any] = None,
  114. class_name: Optional[Any] = None,
  115. autofocus: Optional[bool] = None,
  116. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  117. on_blur: Optional[
  118. Union[EventHandler, EventSpec, list, function, BaseVar]
  119. ] = None,
  120. on_click: Optional[
  121. Union[EventHandler, EventSpec, list, function, BaseVar]
  122. ] = None,
  123. on_context_menu: Optional[
  124. Union[EventHandler, EventSpec, list, function, BaseVar]
  125. ] = None,
  126. on_double_click: Optional[
  127. Union[EventHandler, EventSpec, list, function, BaseVar]
  128. ] = None,
  129. on_focus: Optional[
  130. Union[EventHandler, EventSpec, list, function, BaseVar]
  131. ] = None,
  132. on_mount: Optional[
  133. Union[EventHandler, EventSpec, list, function, BaseVar]
  134. ] = None,
  135. on_mouse_down: Optional[
  136. Union[EventHandler, EventSpec, list, function, BaseVar]
  137. ] = None,
  138. on_mouse_enter: Optional[
  139. Union[EventHandler, EventSpec, list, function, BaseVar]
  140. ] = None,
  141. on_mouse_leave: Optional[
  142. Union[EventHandler, EventSpec, list, function, BaseVar]
  143. ] = None,
  144. on_mouse_move: Optional[
  145. Union[EventHandler, EventSpec, list, function, BaseVar]
  146. ] = None,
  147. on_mouse_out: Optional[
  148. Union[EventHandler, EventSpec, list, function, BaseVar]
  149. ] = None,
  150. on_mouse_over: Optional[
  151. Union[EventHandler, EventSpec, list, function, BaseVar]
  152. ] = None,
  153. on_mouse_up: Optional[
  154. Union[EventHandler, EventSpec, list, function, BaseVar]
  155. ] = None,
  156. on_scroll: Optional[
  157. Union[EventHandler, EventSpec, list, function, BaseVar]
  158. ] = None,
  159. on_unmount: Optional[
  160. Union[EventHandler, EventSpec, list, function, BaseVar]
  161. ] = None,
  162. **props
  163. ) -> "Thead":
  164. """Create a table header component.
  165. Args:
  166. *children: The children of the component.
  167. headers (list, optional): List of headers. Defaults to None.
  168. style: The style of the component.
  169. key: A unique key for the component.
  170. id: The id for the component.
  171. class_name: The class name for the component.
  172. autofocus: Whether the component should take the focus once the page is loaded
  173. custom_attrs: custom attribute
  174. **props: The properties of the component.
  175. Returns:
  176. The table header component.
  177. """
  178. ...
  179. @staticmethod
  180. def validate_headers(headers): ...
  181. class Tbody(ChakraComponent):
  182. @overload
  183. @classmethod
  184. def create( # type: ignore
  185. cls,
  186. *children,
  187. rows=None,
  188. style: Optional[Style] = None,
  189. key: Optional[Any] = None,
  190. id: Optional[Any] = None,
  191. class_name: Optional[Any] = None,
  192. autofocus: Optional[bool] = None,
  193. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  194. on_blur: Optional[
  195. Union[EventHandler, EventSpec, list, function, BaseVar]
  196. ] = None,
  197. on_click: Optional[
  198. Union[EventHandler, EventSpec, list, function, BaseVar]
  199. ] = None,
  200. on_context_menu: Optional[
  201. Union[EventHandler, EventSpec, list, function, BaseVar]
  202. ] = None,
  203. on_double_click: Optional[
  204. Union[EventHandler, EventSpec, list, function, BaseVar]
  205. ] = None,
  206. on_focus: Optional[
  207. Union[EventHandler, EventSpec, list, function, BaseVar]
  208. ] = None,
  209. on_mount: Optional[
  210. Union[EventHandler, EventSpec, list, function, BaseVar]
  211. ] = None,
  212. on_mouse_down: Optional[
  213. Union[EventHandler, EventSpec, list, function, BaseVar]
  214. ] = None,
  215. on_mouse_enter: Optional[
  216. Union[EventHandler, EventSpec, list, function, BaseVar]
  217. ] = None,
  218. on_mouse_leave: Optional[
  219. Union[EventHandler, EventSpec, list, function, BaseVar]
  220. ] = None,
  221. on_mouse_move: Optional[
  222. Union[EventHandler, EventSpec, list, function, BaseVar]
  223. ] = None,
  224. on_mouse_out: Optional[
  225. Union[EventHandler, EventSpec, list, function, BaseVar]
  226. ] = None,
  227. on_mouse_over: Optional[
  228. Union[EventHandler, EventSpec, list, function, BaseVar]
  229. ] = None,
  230. on_mouse_up: Optional[
  231. Union[EventHandler, EventSpec, list, function, BaseVar]
  232. ] = None,
  233. on_scroll: Optional[
  234. Union[EventHandler, EventSpec, list, function, BaseVar]
  235. ] = None,
  236. on_unmount: Optional[
  237. Union[EventHandler, EventSpec, list, function, BaseVar]
  238. ] = None,
  239. **props
  240. ) -> "Tbody":
  241. """Create a table body component.
  242. Args:
  243. *children: The children of the component.
  244. rows (list[list], optional): The rows of the table body. Defaults to None.
  245. style: The style of the component.
  246. key: A unique key for the component.
  247. id: The id for the component.
  248. class_name: The class name for the component.
  249. autofocus: Whether the component should take the focus once the page is loaded
  250. custom_attrs: custom attribute
  251. **props: The properties of the component.
  252. Returns:
  253. Component: The table body component
  254. """
  255. ...
  256. @staticmethod
  257. def validate_rows(rows): ...
  258. class Tfoot(ChakraComponent):
  259. @overload
  260. @classmethod
  261. def create( # type: ignore
  262. cls,
  263. *children,
  264. footers=None,
  265. style: Optional[Style] = None,
  266. key: Optional[Any] = None,
  267. id: Optional[Any] = None,
  268. class_name: Optional[Any] = None,
  269. autofocus: Optional[bool] = None,
  270. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  271. on_blur: Optional[
  272. Union[EventHandler, EventSpec, list, function, BaseVar]
  273. ] = None,
  274. on_click: Optional[
  275. Union[EventHandler, EventSpec, list, function, BaseVar]
  276. ] = None,
  277. on_context_menu: Optional[
  278. Union[EventHandler, EventSpec, list, function, BaseVar]
  279. ] = None,
  280. on_double_click: Optional[
  281. Union[EventHandler, EventSpec, list, function, BaseVar]
  282. ] = None,
  283. on_focus: Optional[
  284. Union[EventHandler, EventSpec, list, function, BaseVar]
  285. ] = None,
  286. on_mount: Optional[
  287. Union[EventHandler, EventSpec, list, function, BaseVar]
  288. ] = None,
  289. on_mouse_down: Optional[
  290. Union[EventHandler, EventSpec, list, function, BaseVar]
  291. ] = None,
  292. on_mouse_enter: Optional[
  293. Union[EventHandler, EventSpec, list, function, BaseVar]
  294. ] = None,
  295. on_mouse_leave: Optional[
  296. Union[EventHandler, EventSpec, list, function, BaseVar]
  297. ] = None,
  298. on_mouse_move: Optional[
  299. Union[EventHandler, EventSpec, list, function, BaseVar]
  300. ] = None,
  301. on_mouse_out: Optional[
  302. Union[EventHandler, EventSpec, list, function, BaseVar]
  303. ] = None,
  304. on_mouse_over: Optional[
  305. Union[EventHandler, EventSpec, list, function, BaseVar]
  306. ] = None,
  307. on_mouse_up: Optional[
  308. Union[EventHandler, EventSpec, list, function, BaseVar]
  309. ] = None,
  310. on_scroll: Optional[
  311. Union[EventHandler, EventSpec, list, function, BaseVar]
  312. ] = None,
  313. on_unmount: Optional[
  314. Union[EventHandler, EventSpec, list, function, BaseVar]
  315. ] = None,
  316. **props
  317. ) -> "Tfoot":
  318. """Create a table footer component.
  319. Args:
  320. *children: The children of the component.
  321. footers (list, optional): List of footers. Defaults to None.
  322. style: The style of the component.
  323. key: A unique key for the component.
  324. id: The id for the component.
  325. class_name: The class name for the component.
  326. autofocus: Whether the component should take the focus once the page is loaded
  327. custom_attrs: custom attribute
  328. **props: The properties of the component.
  329. Returns:
  330. The table footer component.
  331. """
  332. ...
  333. @staticmethod
  334. def validate_footers(footers): ...
  335. class Tr(ChakraComponent):
  336. @overload
  337. @classmethod
  338. def create( # type: ignore
  339. cls,
  340. *children,
  341. cell_type: Optional[str] = "",
  342. cells=None,
  343. style: Optional[Style] = None,
  344. key: Optional[Any] = None,
  345. id: Optional[Any] = None,
  346. class_name: Optional[Any] = None,
  347. autofocus: Optional[bool] = None,
  348. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  349. on_blur: Optional[
  350. Union[EventHandler, EventSpec, list, function, BaseVar]
  351. ] = None,
  352. on_click: Optional[
  353. Union[EventHandler, EventSpec, list, function, BaseVar]
  354. ] = None,
  355. on_context_menu: Optional[
  356. Union[EventHandler, EventSpec, list, function, BaseVar]
  357. ] = None,
  358. on_double_click: Optional[
  359. Union[EventHandler, EventSpec, list, function, BaseVar]
  360. ] = None,
  361. on_focus: Optional[
  362. Union[EventHandler, EventSpec, list, function, BaseVar]
  363. ] = None,
  364. on_mount: Optional[
  365. Union[EventHandler, EventSpec, list, function, BaseVar]
  366. ] = None,
  367. on_mouse_down: Optional[
  368. Union[EventHandler, EventSpec, list, function, BaseVar]
  369. ] = None,
  370. on_mouse_enter: Optional[
  371. Union[EventHandler, EventSpec, list, function, BaseVar]
  372. ] = None,
  373. on_mouse_leave: Optional[
  374. Union[EventHandler, EventSpec, list, function, BaseVar]
  375. ] = None,
  376. on_mouse_move: Optional[
  377. Union[EventHandler, EventSpec, list, function, BaseVar]
  378. ] = None,
  379. on_mouse_out: Optional[
  380. Union[EventHandler, EventSpec, list, function, BaseVar]
  381. ] = None,
  382. on_mouse_over: Optional[
  383. Union[EventHandler, EventSpec, list, function, BaseVar]
  384. ] = None,
  385. on_mouse_up: Optional[
  386. Union[EventHandler, EventSpec, list, function, BaseVar]
  387. ] = None,
  388. on_scroll: Optional[
  389. Union[EventHandler, EventSpec, list, function, BaseVar]
  390. ] = None,
  391. on_unmount: Optional[
  392. Union[EventHandler, EventSpec, list, function, BaseVar]
  393. ] = None,
  394. **props
  395. ) -> "Tr":
  396. """Create a table row component.
  397. Args:
  398. *children: The children of the component.
  399. cell_type: the type of cells in this table row. "header" or "data". Defaults to None.
  400. cells: The cells value to add in the table row. Defaults to None.
  401. style: The style of the component.
  402. key: A unique key for the component.
  403. id: The id for the component.
  404. class_name: The class name for the component.
  405. autofocus: Whether the component should take the focus once the page is loaded
  406. custom_attrs: custom attribute
  407. **props: The properties of the component.
  408. Returns:
  409. The table row component
  410. """
  411. ...
  412. class Th(ChakraComponent):
  413. @overload
  414. @classmethod
  415. def create( # type: ignore
  416. cls,
  417. *children,
  418. is_numeric: Optional[Union[Var[bool], bool]] = None,
  419. style: Optional[Style] = None,
  420. key: Optional[Any] = None,
  421. id: Optional[Any] = None,
  422. class_name: Optional[Any] = None,
  423. autofocus: Optional[bool] = None,
  424. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  425. on_blur: Optional[
  426. Union[EventHandler, EventSpec, list, function, BaseVar]
  427. ] = None,
  428. on_click: Optional[
  429. Union[EventHandler, EventSpec, list, function, BaseVar]
  430. ] = None,
  431. on_context_menu: Optional[
  432. Union[EventHandler, EventSpec, list, function, BaseVar]
  433. ] = None,
  434. on_double_click: Optional[
  435. Union[EventHandler, EventSpec, list, function, BaseVar]
  436. ] = None,
  437. on_focus: Optional[
  438. Union[EventHandler, EventSpec, list, function, BaseVar]
  439. ] = None,
  440. on_mount: Optional[
  441. Union[EventHandler, EventSpec, list, function, BaseVar]
  442. ] = None,
  443. on_mouse_down: Optional[
  444. Union[EventHandler, EventSpec, list, function, BaseVar]
  445. ] = None,
  446. on_mouse_enter: Optional[
  447. Union[EventHandler, EventSpec, list, function, BaseVar]
  448. ] = None,
  449. on_mouse_leave: Optional[
  450. Union[EventHandler, EventSpec, list, function, BaseVar]
  451. ] = None,
  452. on_mouse_move: Optional[
  453. Union[EventHandler, EventSpec, list, function, BaseVar]
  454. ] = None,
  455. on_mouse_out: Optional[
  456. Union[EventHandler, EventSpec, list, function, BaseVar]
  457. ] = None,
  458. on_mouse_over: Optional[
  459. Union[EventHandler, EventSpec, list, function, BaseVar]
  460. ] = None,
  461. on_mouse_up: Optional[
  462. Union[EventHandler, EventSpec, list, function, BaseVar]
  463. ] = None,
  464. on_scroll: Optional[
  465. Union[EventHandler, EventSpec, list, function, BaseVar]
  466. ] = None,
  467. on_unmount: Optional[
  468. Union[EventHandler, EventSpec, list, function, BaseVar]
  469. ] = None,
  470. **props
  471. ) -> "Th":
  472. """Create the component.
  473. Args:
  474. *children: The children of the component.
  475. is_numeric: Aligns the cell content to the right.
  476. style: The style of the component.
  477. key: A unique key for the component.
  478. id: The id for the component.
  479. class_name: The class name for the component.
  480. autofocus: Whether the component should take the focus once the page is loaded
  481. custom_attrs: custom attribute
  482. **props: The props of the component.
  483. Returns:
  484. The component.
  485. Raises:
  486. TypeError: If an invalid child is passed.
  487. """
  488. ...
  489. class Td(ChakraComponent):
  490. @overload
  491. @classmethod
  492. def create( # type: ignore
  493. cls,
  494. *children,
  495. is_numeric: Optional[Union[Var[bool], bool]] = None,
  496. style: Optional[Style] = None,
  497. key: Optional[Any] = None,
  498. id: Optional[Any] = None,
  499. class_name: Optional[Any] = None,
  500. autofocus: Optional[bool] = None,
  501. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  502. on_blur: Optional[
  503. Union[EventHandler, EventSpec, list, function, BaseVar]
  504. ] = None,
  505. on_click: Optional[
  506. Union[EventHandler, EventSpec, list, function, BaseVar]
  507. ] = None,
  508. on_context_menu: Optional[
  509. Union[EventHandler, EventSpec, list, function, BaseVar]
  510. ] = None,
  511. on_double_click: Optional[
  512. Union[EventHandler, EventSpec, list, function, BaseVar]
  513. ] = None,
  514. on_focus: Optional[
  515. Union[EventHandler, EventSpec, list, function, BaseVar]
  516. ] = None,
  517. on_mount: Optional[
  518. Union[EventHandler, EventSpec, list, function, BaseVar]
  519. ] = None,
  520. on_mouse_down: Optional[
  521. Union[EventHandler, EventSpec, list, function, BaseVar]
  522. ] = None,
  523. on_mouse_enter: Optional[
  524. Union[EventHandler, EventSpec, list, function, BaseVar]
  525. ] = None,
  526. on_mouse_leave: Optional[
  527. Union[EventHandler, EventSpec, list, function, BaseVar]
  528. ] = None,
  529. on_mouse_move: Optional[
  530. Union[EventHandler, EventSpec, list, function, BaseVar]
  531. ] = None,
  532. on_mouse_out: Optional[
  533. Union[EventHandler, EventSpec, list, function, BaseVar]
  534. ] = None,
  535. on_mouse_over: Optional[
  536. Union[EventHandler, EventSpec, list, function, BaseVar]
  537. ] = None,
  538. on_mouse_up: Optional[
  539. Union[EventHandler, EventSpec, list, function, BaseVar]
  540. ] = None,
  541. on_scroll: Optional[
  542. Union[EventHandler, EventSpec, list, function, BaseVar]
  543. ] = None,
  544. on_unmount: Optional[
  545. Union[EventHandler, EventSpec, list, function, BaseVar]
  546. ] = None,
  547. **props
  548. ) -> "Td":
  549. """Create the component.
  550. Args:
  551. *children: The children of the component.
  552. is_numeric: Aligns the cell content to the right.
  553. style: The style of the component.
  554. key: A unique key for the component.
  555. id: The id for the component.
  556. class_name: The class name for the component.
  557. autofocus: Whether the component should take the focus once the page is loaded
  558. custom_attrs: custom attribute
  559. **props: The props of the component.
  560. Returns:
  561. The component.
  562. Raises:
  563. TypeError: If an invalid child is passed.
  564. """
  565. ...
  566. class TableCaption(ChakraComponent):
  567. @overload
  568. @classmethod
  569. def create( # type: ignore
  570. cls,
  571. *children,
  572. placement: Optional[Union[Var[str], str]] = None,
  573. style: Optional[Style] = None,
  574. key: Optional[Any] = None,
  575. id: Optional[Any] = None,
  576. class_name: Optional[Any] = None,
  577. autofocus: Optional[bool] = None,
  578. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  579. on_blur: Optional[
  580. Union[EventHandler, EventSpec, list, function, BaseVar]
  581. ] = None,
  582. on_click: Optional[
  583. Union[EventHandler, EventSpec, list, function, BaseVar]
  584. ] = None,
  585. on_context_menu: Optional[
  586. Union[EventHandler, EventSpec, list, function, BaseVar]
  587. ] = None,
  588. on_double_click: Optional[
  589. Union[EventHandler, EventSpec, list, function, BaseVar]
  590. ] = None,
  591. on_focus: Optional[
  592. Union[EventHandler, EventSpec, list, function, BaseVar]
  593. ] = None,
  594. on_mount: Optional[
  595. Union[EventHandler, EventSpec, list, function, BaseVar]
  596. ] = None,
  597. on_mouse_down: Optional[
  598. Union[EventHandler, EventSpec, list, function, BaseVar]
  599. ] = None,
  600. on_mouse_enter: Optional[
  601. Union[EventHandler, EventSpec, list, function, BaseVar]
  602. ] = None,
  603. on_mouse_leave: Optional[
  604. Union[EventHandler, EventSpec, list, function, BaseVar]
  605. ] = None,
  606. on_mouse_move: Optional[
  607. Union[EventHandler, EventSpec, list, function, BaseVar]
  608. ] = None,
  609. on_mouse_out: Optional[
  610. Union[EventHandler, EventSpec, list, function, BaseVar]
  611. ] = None,
  612. on_mouse_over: Optional[
  613. Union[EventHandler, EventSpec, list, function, BaseVar]
  614. ] = None,
  615. on_mouse_up: Optional[
  616. Union[EventHandler, EventSpec, list, function, BaseVar]
  617. ] = None,
  618. on_scroll: Optional[
  619. Union[EventHandler, EventSpec, list, function, BaseVar]
  620. ] = None,
  621. on_unmount: Optional[
  622. Union[EventHandler, EventSpec, list, function, BaseVar]
  623. ] = None,
  624. **props
  625. ) -> "TableCaption":
  626. """Create the component.
  627. Args:
  628. *children: The children of the component.
  629. placement: The placement of the table caption. This sets the `caption-side` CSS attribute.
  630. style: The style of the component.
  631. key: A unique key for the component.
  632. id: The id for the component.
  633. class_name: The class name for the component.
  634. autofocus: Whether the component should take the focus once the page is loaded
  635. custom_attrs: custom attribute
  636. **props: The props of the component.
  637. Returns:
  638. The component.
  639. Raises:
  640. TypeError: If an invalid child is passed.
  641. """
  642. ...
  643. class TableContainer(ChakraComponent):
  644. @overload
  645. @classmethod
  646. def create( # type: ignore
  647. cls,
  648. *children,
  649. style: Optional[Style] = None,
  650. key: Optional[Any] = None,
  651. id: Optional[Any] = None,
  652. class_name: Optional[Any] = None,
  653. autofocus: Optional[bool] = None,
  654. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  655. on_blur: Optional[
  656. Union[EventHandler, EventSpec, list, function, BaseVar]
  657. ] = None,
  658. on_click: Optional[
  659. Union[EventHandler, EventSpec, list, function, BaseVar]
  660. ] = None,
  661. on_context_menu: Optional[
  662. Union[EventHandler, EventSpec, list, function, BaseVar]
  663. ] = None,
  664. on_double_click: Optional[
  665. Union[EventHandler, EventSpec, list, function, BaseVar]
  666. ] = None,
  667. on_focus: Optional[
  668. Union[EventHandler, EventSpec, list, function, BaseVar]
  669. ] = None,
  670. on_mount: Optional[
  671. Union[EventHandler, EventSpec, list, function, BaseVar]
  672. ] = None,
  673. on_mouse_down: Optional[
  674. Union[EventHandler, EventSpec, list, function, BaseVar]
  675. ] = None,
  676. on_mouse_enter: Optional[
  677. Union[EventHandler, EventSpec, list, function, BaseVar]
  678. ] = None,
  679. on_mouse_leave: Optional[
  680. Union[EventHandler, EventSpec, list, function, BaseVar]
  681. ] = None,
  682. on_mouse_move: Optional[
  683. Union[EventHandler, EventSpec, list, function, BaseVar]
  684. ] = None,
  685. on_mouse_out: Optional[
  686. Union[EventHandler, EventSpec, list, function, BaseVar]
  687. ] = None,
  688. on_mouse_over: Optional[
  689. Union[EventHandler, EventSpec, list, function, BaseVar]
  690. ] = None,
  691. on_mouse_up: Optional[
  692. Union[EventHandler, EventSpec, list, function, BaseVar]
  693. ] = None,
  694. on_scroll: Optional[
  695. Union[EventHandler, EventSpec, list, function, BaseVar]
  696. ] = None,
  697. on_unmount: Optional[
  698. Union[EventHandler, EventSpec, list, function, BaseVar]
  699. ] = None,
  700. **props
  701. ) -> "TableContainer":
  702. """Create the component.
  703. Args:
  704. *children: The children of the component.
  705. style: The style of the component.
  706. key: A unique key for the component.
  707. id: The id for the component.
  708. class_name: The class name for the component.
  709. autofocus: Whether the component should take the focus once the page is loaded
  710. custom_attrs: custom attribute
  711. **props: The props of the component.
  712. Returns:
  713. The component.
  714. Raises:
  715. TypeError: If an invalid child is passed.
  716. """
  717. ...