table.asciidoc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. == table
  2. Status: *Stable*
  3. The table panel contains a sortable, pagable view of documents that. It can be arranged into
  4. defined columns and offers several interactions, such as performing adhoc terms aggregations.
  5. // src/app/panels/table/module.js:5
  6. === Parameters
  7. size:: The number of hits to show per page
  8. // src/app/panels/table/module.js:53
  9. pages:: The number of pages available
  10. // src/app/panels/table/module.js:59
  11. offset:: The current page
  12. // src/app/panels/table/module.js:63
  13. sort:: An array describing the sort order of the table. For example [`@timestamp',`desc']
  14. // src/app/panels/table/module.js:67
  15. overflow:: The css overflow property. `min-height' (expand) or `auto' (scroll)
  16. // src/app/panels/table/module.js:71
  17. fields:: the fields used a columns of the table, in an array.
  18. // src/app/panels/table/module.js:75
  19. highlight:: The fields on which to highlight, in an array
  20. // src/app/panels/table/module.js:79
  21. sortable:: Set sortable to false to disable sorting
  22. // src/app/panels/table/module.js:83
  23. header:: Set to false to hide the table column names
  24. // src/app/panels/table/module.js:87
  25. paging:: Set to false to hide the paging controls of the table
  26. // src/app/panels/table/module.js:91
  27. field_list:: Set to false to hide the list of fields. The user will be able to expand it,
  28. but it will be hidden by default
  29. // src/app/panels/table/module.js:95
  30. all_fields:: Set to true to show all fields in the mapping, not just the current fields in
  31. the table.
  32. // src/app/panels/table/module.js:100
  33. trimFactor:: The trim factor is the length at which to truncate fields takinging into
  34. consideration the number of columns in the table. For example, a trimFactor of 100, with 5
  35. columns in the table, would trim each column at 20 character. The entirety of the field is
  36. still available in the expanded view of the event.
  37. // src/app/panels/table/module.js:105
  38. localTime:: Set to true to adjust the timeField to the browser's local time
  39. // src/app/panels/table/module.js:112
  40. timeField:: If localTime is set to true, this field will be adjusted to the browsers local time
  41. // src/app/panels/table/module.js:116
  42. spyable:: Set to false to disable the inspect icon
  43. // src/app/panels/table/module.js:120
  44. ==== Queries
  45. queries object:: This object describes the queries to use on this panel.
  46. queries.mode::: Of the queries available, which to use. Options: +all, pinned, unpinned, selected+
  47. queries.ids::: In +selected+ mode, which query ids are selected.
  48. // src/app/panels/table/module.js:124