With loc.footer() we can target the table’s footer, which currently contains the source notes (and may contain a ‘footnotes’ location in the future). This is useful when applying custom styling with the tab_style() method. That method has a locations= argument and this class should be used there to perform the targeting. The ‘footer’ location is generated by tab_source_note().
A LocFooter object, which is used for a locations= argument if specifying the footer of the table.
Examples
Let’s use a subset of the gtcars dataset in a new table. Add a source note (with tab_source_note() and style this footer section inside of tab_style() with locations=loc.footer().