Types/TableStyleSpecification: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.18.22)
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Extension of [[Types/StyleSpecification]].<br>
<div class="stub"><p>'''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]
Style specification type: '''table_style'''


== Optional properties ==
</p><p>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].</p></div>
Inherits all properties from [[Types/StyleSpecification]].
 
=== horizontal_spacing ===
'''Type''': [[Types/int32|int32]]
 
=== vertical_spacing ===
'''Type''': [[Types/int32|int32]]
 
=== cell_padding ===
'''Type''': [[Types/int16|int16]]
 
Sets <code>top_cell_padding</code>, <code>right_cell_padding</code>, <code>bottom_cell_padding</code> and <code>left_cell_padding</code>.
 
=== top_cell_padding ===
'''Type''': [[Types/int16|int16]]
 
=== right_cell_padding ===
'''Type''': [[Types/int16|int16]]
 
=== bottom_cell_padding ===
'''Type''': [[Types/int16|int16]]
 
=== left_cell_padding ===
'''Type''': [[Types/int16|int16]]
 
=== apply_row_graphical_set_per_column ===
'''Type''': [[Types/bool|bool]]
 
=== column_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== default_row_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== even_row_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== odd_row_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== hovered_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== clicked_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== selected_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== selected_hovered_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== selected_clicked_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== background_graphical_set ===
'''Type''': [[Types/ElementImageSet|ElementImageSet]]
 
=== column_alignments ===
'''Type''': [[Types/table|table]] of [[Types/table|table]]
 
Array of tables with the following mandatory key/value pairs:
* column - [[Types/uint32|uint32]] - Column index
* alignment - [[Types/string|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''': [[Types/table|table]] of [[Types/table|table]]
 
Array of tables with the following key/value pairs:
* column - [[Types/uint32|uint32]] - Mandatory. Column index
* minimal_width - [[Types/int32|int32]] - Optional. Default is 0.
* maximal_width - [[Types/int32|int32]] - Optional. Default is 0.
* width - [[Types/int32|int32]] - Optional. Sets min and max width at once.
 
=== hovered_row_color ===
'''Type''': [[Types/Color|Color]]
 
=== selected_row_color ===
'''Type''': [[Types/Color|Color]]
 
=== vertical_line_color ===
'''Type''': [[Types/Color|Color]]
 
=== horizontal_line_color ===
'''Type''': [[Types/Color|Color]]
 
=== column_ordering_ascending_button_style ===
'''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
 
=== column_ordering_descending_button_style ===
'''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
 
=== inactive_column_ordering_ascending_button_style ===
'''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
 
=== inactive_column_ordering_descending_button_style ===
'''Type''': [[Types/ButtonStyleSpecification|ButtonStyleSpecification]]
 
=== border ===
'''Type''': [[Types/BorderImageSet|BorderImageSet]]

Latest revision as of 14:32, 25 October 2024

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.