generate_header: generate header

Description Usage Arguments Value Author(s)

View source: R/table.R

Description

A function that generates the header for the html table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
generate_header(
  beginning = c("<meta charset=\"utf-8\" />",
    "<meta http-equiv=\"x-ua-compatible\" content=\"IE=edge\" >",
    "<link rel=\"stylesheet\" href=\"https://www.sva.se/assets/css/main.css\" />"),
  otherstuff = NULL,
  paging = FALSE,
  ordering = FALSE,
  info = FALSE,
  searching = FALSE
)

Arguments

beginning

A free set of text lines. This is a character vector that contains the text to be put in the html <head> section of the page. The default calls the sva main.css and makes the page compatible with IE and sets text encoding to UTF-8

otherstuff

Whatever otherlines of header you want to add. This will be placed after 'beginning' and before the javascript table code.

paging

Either TRUE or FALSE. Do you want the table to have paging?

ordering

Either TRUE or FALSE Do you want sorting?

info

Either TRUE or FALSE Do you want info?

searching

Either TRUE or FALSE Do you want a search field?

Value

A header object to be passed to the html_table function

Author(s)

Thomas Rosendal


SVA-SE/svamap documentation built on Sept. 25, 2020, 3:53 p.m.