Types/TableStyleSpecification: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.18.22)
(Migrated prototype doc to separate website)
Line 1: Line 1:
'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TableStyleSpecification.html https://lua-api.factorio.com/latest/types/TableStyleSpecification.html]
This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].
Extension of [[Types/StyleSpecification]].<br>
Extension of [[Types/StyleSpecification]].<br>
Style specification type: '''table_style'''
Style specification type: '''table_style'''

Revision as of 17:51, 16 August 2023

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TableStyleSpecification.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Extension of Types/StyleSpecification.
Style specification type: table_style

Optional properties

Inherits all properties from Types/StyleSpecification.

horizontal_spacing

Type: int32

vertical_spacing

Type: int32

cell_padding

Type: int16

Sets top_cell_padding, right_cell_padding, bottom_cell_padding and left_cell_padding.

top_cell_padding

Type: int16

right_cell_padding

Type: int16

bottom_cell_padding

Type: int16

left_cell_padding

Type: int16

apply_row_graphical_set_per_column

Type: bool

column_graphical_set

Type: ElementImageSet

default_row_graphical_set

Type: ElementImageSet

even_row_graphical_set

Type: ElementImageSet

odd_row_graphical_set

Type: ElementImageSet

hovered_graphical_set

Type: ElementImageSet

clicked_graphical_set

Type: ElementImageSet

selected_graphical_set

Type: ElementImageSet

selected_hovered_graphical_set

Type: ElementImageSet

selected_clicked_graphical_set

Type: ElementImageSet

background_graphical_set

Type: ElementImageSet

column_alignments

Type: table of table

Array of tables with the following mandatory key/value pairs:

  • column - uint32 - Column index
  • alignment - string - Either "center", "left", "right", "top-left", "middle-left", "bottom-left", "top-center", "middle-center", "bottom-center", "top-right", "middle-right" or "bottom-right".

column_widths

Type: table of table

Array of tables with the following key/value pairs:

  • column - uint32 - Mandatory. Column index
  • minimal_width - int32 - Optional. Default is 0.
  • maximal_width - int32 - Optional. Default is 0.
  • width - int32 - Optional. Sets min and max width at once.

hovered_row_color

Type: Color

selected_row_color

Type: Color

vertical_line_color

Type: Color

horizontal_line_color

Type: Color

column_ordering_ascending_button_style

Type: ButtonStyleSpecification

column_ordering_descending_button_style

Type: ButtonStyleSpecification

inactive_column_ordering_ascending_button_style

Type: ButtonStyleSpecification

inactive_column_ordering_descending_button_style

Type: ButtonStyleSpecification

border

Type: BorderImageSet