Skip to content

Commit

Permalink
remove set/get_name for PlotlyApp. It does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkelly committed Mar 6, 2023
1 parent cf2cb77 commit 9bab3b1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app/dashapp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ end

#only name, index_string and layout are available to set
function Base.setproperty!(app::DashApp, property::Symbol, value)
property == :name && return set_name!(app, value)
property == :index_string && return set_index_string!(app, value)
property == :layout && return set_layout!(app::DashApp, value)
property == :title && return set_title!(app::DashApp, value)
Expand All @@ -52,16 +51,10 @@ function Base.setproperty!(app::DashApp, property::Symbol, value)
error("The property `$(property)` of `DashApp` does not exist.")
end

function set_name!(app::DashApp, name)
setfield!(app, :name, name)
end

function set_title!(app::DashApp, title)
setfield!(app, :title, title)
end

get_name(app::DashApp) = app.name

function set_layout!(app::DashApp, component::Union{Component,Function})
setfield!(app, :layout, component)
end
Expand Down

0 comments on commit 9bab3b1

Please sign in to comment.