StippleUI.Tables.Column - Type
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

StippleUI.Tables.DataTablePagination - Type
DataTablePagination(sort_by::Symbol, descending::Bool, page::Int, row_per_page::Int)

Examples


julia> DataTablePagination(rows_per_page=50)

StippleUI.Tables.DataTableOptions - Type
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

StippleUI.Tables.DataTable - Type
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)

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

Missing docstring for rows.
Missing docstring for data.
Genie.Renderer.Html.table - Function
table(fieldnmae::Symbol, args...; kwargs...)

Examples


Model

julia> @vars TableModel begin
          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;")

Missing docstring for Stipple.render.
Stipple.watch - Function
function watch

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


Missing docstring for Base.parse.