StippleUI.Tables.ColumnType
Column(name::String, args...)

Examples


julia> Column("x2", align = :right)

Arguments


  • required::Bool - if we use visiblecolumns, this col will always be visible
  • label::String - label for header
  • align::Symbol - alignment for cell
  • field::String - row Object property to determine value for this column ex. name
  • sortable::Bool - tell table you want this column sortable
source
StippleUI.Tables.DataTableOptionsType
DataTableOptions(addid::Bool, idcolumn::String, columns::Union{Vector{Column},Nothing}, columnspecs::Dict{Union{String, Regex}, Dict{Symbol, Any}})

Examples


julia> DataTableOptions(columns = [Column("x1"), Column("x2", align = :right)])

Columnspecs

Usage for formating columns

julia> import Stipple.opts
julia> df = DataFrame(a = sin.(-π:π/10:π), b = cos.(-π:π/10:π), c = string.(rand(21)))
julia> dt = DataTable(df)
julia> dt.opts.columnspecs[r"^(a|b)$"] = opts(format = jsfunction(raw"(val, row) => `${100*val.toFixed(3)}%`"))
julia> model.table[] = dt
source
StippleUI.Tables.DataTableType
DataTable(data::T<:DataFrames.DataFrame, opts::DataTableOptions)

Examples


julia> df = DataFrame(a = sin.(-π:π/10:π), b = cos.(-π:π/10:π), c = string.(rand(21)))
julia> dt = DataTable(df)
source
Missing docstring.

Missing docstring for active_columns. Check Documenter's build log for details.

StippleUI.Tables.columnsFunction
columns(t::T)::Vector{Column} where {T<:DataTable}
julia> columns = [Column("x1"), Column("x2", align = :right)]
source
Missing docstring.

Missing docstring for rows. Check Documenter's build log for details.

Missing docstring.

Missing docstring for data. Check Documenter's build log for details.

Genie.Renderer.Html.tableFunction
table(fieldnmae::Symbol, args...; kwargs...)

Examples


Model

julia> @reactive mutable struct TableModel <: ReactiveModel
          data::R{DataTable} = DataTable(DataFrame(rand(100000,2), ["x1", "x2"]), DataTableOptions(columns = [Column("x1"), Column("x2", align = :right)]))
          data_pagination::DataTablePagination = DataTablePagination(rows_per_page=50)
       end

View

julia> table(title="Random numbers", :data; pagination=:data_pagination, style="height: 350px;")
source
Missing docstring.

Missing docstring for Stipple.render. Check Documenter's build log for details.

Stipple.watchFunction
function watch

Abstract function. Can be used by plugins to define custom Vue.js watch functions.

Missing docstring.

Missing docstring for Base.parse. Check Documenter's build log for details.