diff --git a/docs/articles/shinyMobile.html b/docs/articles/shinyMobile.html index 4a4274c8..03b57564 100644 --- a/docs/articles/shinyMobile.html +++ b/docs/articles/shinyMobile.html @@ -121,10 +121,9 @@

Introduction -

Custom skins -

+
+

Custom skins +

shinyMobile offers 3 skins:

-
-

Layouts -

+
+

Layouts +

shinyMobile brings 3 out of the box layouts:

  • @@ -156,12 +155,12 @@

    Layouts

-
-

UI elements -

-

Inputs: brief comparison side by side with {shiny} +

UI elements

+
+

Inputs: brief comparison side by side with {shiny} +

shinyMobile has its own custom input widgets with unique design for each skin (iOS/android/aurora). Below we summarise all known shiny inputs and their equivalent with @@ -261,9 +260,10 @@

Inputs: brief compariso

-
-

Containers -

+
+

Containers +

+
@@ -376,18 +376,19 @@

The appbar= FALSE )

- +
+

Select a template +

This choice is crucial when you are developing an App. It depends on the complexity of your visualizations and content. If your plan is to develop a simple graph or table, you should go for the f7SingleLayout() option. For more complex design, the best is f7TabLayout(). f7SplitLayout() is specific for tablets and desktop apps.

-
-
Simple Layout -
+
+

Simple Layout +

f7SingleLayout() is dedicated to build simple, one-page apps or gadgets.

@@ -413,6 +414,11 @@ 
Simple Layout
+ +
 library(shiny)
 library(shinyMobile)
@@ -470,9 +476,10 @@ 
Simple Layout} )
- +
+

Tabs Layout +

Choose this layout to develop complex multi-tabbed apps (best choice for iOS/android Apps).

@@ -502,6 +509,11 @@ 
Tabs Layout
+ +
 library(shiny)
 library(shinyMobile)
@@ -618,9 +630,10 @@ 
Tabs Layout} )
- +
+

Split Layout +

f7SplitLayout() is the third layout introduced with shinyMobile, similar to sidebarLayout with {shiny}. This template is focused for tablet/desktop use. It is composed @@ -670,6 +683,11 @@

Split Layout
+ +
 library(shiny)
 library(ggplot2)
@@ -839,10 +857,11 @@ 
Split Layout)
-
-

Options -

-

This is probably the most important element of the template:

+
+
+

App options +

+

This is where you can customize the global app behavior:

 options = list(
     theme = c("ios", "md", "auto", "aurora"),
@@ -877,7 +896,6 @@ 

Optionsoptions parameter.

-

Gadgets

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index c7a0f3fb..6dd6bbd1 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,5 +5,5 @@ articles: pwa: pwa.html shinyMobile-tools: shinyMobile-tools.html shinyMobile: shinyMobile.html -last_built: 2024-01-25T20:48Z +last_built: 2024-01-25T22:00Z diff --git a/vignettes/shinyMobile.Rmd b/vignettes/shinyMobile.Rmd index e8cb2c67..a2e6bdb4 100644 --- a/vignettes/shinyMobile.Rmd +++ b/vignettes/shinyMobile.Rmd @@ -25,7 +25,7 @@ library(bslib) - Develop __progressive web shinyapps__ (PWA, similar to native apps). - Develop desktop shinyapps. -# Custom skins +## Custom skins `{shinyMobile}` offers 3 skins: @@ -36,7 +36,7 @@ It automatically detects if the app is running with android or iOS and according `{shinyMobile}` also provides 2 themes, namely light and dark. -# Layouts +## Layouts `{shinyMobile}` brings 3 out of the box layouts: @@ -44,8 +44,8 @@ It automatically detects if the app is running with android or iOS and according - `f7TabLayout()`: develop complex __multi-tabbed__ apps (best choice for iOS/android Apps). - `f7SplitLayout()`: for __tablets__ and desktop with a sidebar, navbar and a main panel -# UI elements -## Inputs: brief comparison side by side with `{shiny}` +## UI elements +### Inputs: brief comparison side by side with `{shiny}` `{shinyMobile}` has its own custom input widgets with unique design for each skin (iOS/android/aurora). Below we summarise all known shiny inputs and their equivalent with `{shinyMobile}`. @@ -65,7 +65,7 @@ equivalent with `{shinyMobile}`. | Color | ❌ | `f7ColorPicker()`| | Download | `downloadButton()` | `f7DownloadButton()`| -## Containers +### Containers # Create your first App @@ -170,7 +170,7 @@ f7Appbar( This choice is crucial when you are developing an App. It depends on the complexity of your visualizations and content. If your plan is to develop a simple graph or table, you should go for the `f7SingleLayout()` option. For more complex design, the best is `f7TabLayout()`. `f7SplitLayout()` is specific for tablets and desktop apps. -#### Simple Layout +### Simple Layout `f7SingleLayout()` is dedicated to build simple, one-page apps or gadgets. @@ -206,7 +206,13 @@ card( full_screen = TRUE ) ``` + +
```{r, eval=FALSE} library(shiny) library(shinyMobile) @@ -264,8 +270,9 @@ shinyApp( } ) ``` +
-#### Tabs Layout +### Tabs Layout Choose this layout to develop complex __multi-tabbed__ apps (best choice for iOS/android Apps). @@ -301,6 +308,13 @@ card( ) ``` + + +
```{r, eval=FALSE} library(shiny) library(shinyMobile) @@ -418,8 +432,9 @@ shinyApp( } ) ``` +
-#### Split Layout +### Split Layout `f7SplitLayout()` is the third layout introduced with `{shinyMobile}`, similar to `sidebarLayout` with {shiny}. This template is focused for tablet/desktop use. It is composed of a sidebar, and a main panel. @@ -469,6 +484,14 @@ card( ) ``` + + +
+ ```{r, eval=FALSE} library(shiny) library(ggplot2) @@ -637,8 +660,9 @@ shinyApp( } ) ``` +
-## Options +## App options This is where you can customize the global app behavior: @@ -669,7 +693,7 @@ As stated above, you may choose between 3 skins and 2 color themes. There is a t `{shinyMobile}` brings a lot of different colors. __hideOnPageScroll__ allows to hide/show the navbar and toolbar which is useful to focus on the content. The __tapHold__ parameter ensure that the "long-press" feature is activated. __preloader__ is useful in case you want to display a loading screen. Framework7 has many more [options](https://v5.framework7.io/docs/app#app-parameters) which can be passed through this __options__ parameter. -## Gadgets +# Gadgets `{shinyMobile}` is particularly well suited to build shiny __gagdets__. To convert an existing app to a gadget, wrap it in the `shiny::runGadget()` function.