library(htmltools) rf <- econWeb::create_rfig(T)
rf$div$toolbar( rf$div$`btn-home`(), rf$div$`btn-news`(), rf$div$`btn-event`(), rf$div$`btn-list`() ) |> tagList( rf$style() ) |> econWeb::browseTag()
.btn-home { background-image: url(/Users/martinl/Github/icons/docs/usr/.btn-home.svg); }
rf$create_cssFile()
tagList( rf$div$homes( rf$div$`home-1`(), rf$div$`home-2`(), rf$div$`home-3`(), rf$div$`home-4`() ), rf$style() ) |> econWeb::browseTag()
file.edit("rfig.css")
tagList( rf$div$frame( rf$div$circle(), rf$div$rect() ), rf$style() ) -> myUI myUI |> econWeb::browseTag()
rf$create_cssFile() tagList( rf$div$frame( rf$div$circle(), rf$div$rect() ), rf$includeCSS() ) -> myUI myUI |> econWeb::browseTag()
You can also create css file with different filename.
rf$create_cssFile("mystyle.css") tagList( rf$div$frame( rf$div$circle(), rf$div$rect() ), rf$includeCSS() ) -> myUI myUI |> econWeb::browseTag()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.