GithubHelp home page GithubHelp logo

some fundamental components about bsplus HOT 1 OPEN

ijlyttle avatar ijlyttle commented on June 1, 2024
some fundamental components

from bsplus.

Comments (1)

ijlyttle avatar ijlyttle commented on June 1, 2024

What shall the API look like?

Reference

button

bs_buttton <- function(label, button_type = "default", ...)
Argument Description
label character (HTML), button label
button_type character, one of "default", "primary", ...
... passed to tags$button(), named args passed to tagAppendAttributes(), unnamed args become children

You can change the size of the buttons, but I don't think that would be used too often - perhaps just note in the documentation that this can be addressed with a class specification.

panel

bs_panel <- function(panel_type = "default", heading = NULL, content = NULL, footer = NULL, ...)

bs_panel_title <- function(title = NULL) 
Argument Description
panel_type character, one of "default", "primary", ...
heading character (HTML) for panel heading, use bs_panel_title() to use title styling
content character (HTML) content for panel body
footer character (HTML) for panel footer
... passed to tags$div() for panel, named args passed to tagAppendAttributes(), unnamed args become children
title character (HTML) to wrap in in title-styling

well

bs_well(size = c("medium", "large", "small"), ...)
Argument Description
size character, well size
... passed to tags$div() for well, named args passed to tagAppendAttributes(), unnamed args become children

responsive embed

bs_wrap_responsive <- function(tag, aspect_ratio = c("16by9", "4by3"))
Argument Description
tag HTML, <iframe/> (maybe warn if not iframe)
aspect_ratio character, aspect ratio for the embed

from bsplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.