GenieFramework / GenieFramework/StippleUI.jl

How to easily generate dynamic content

Open
#40 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
90
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I have a Dict in the model (that can change)
```
Stipple.@kwdef mutable struct Model <: ReactiveModel
params::R{Dict} = Dict{String, Any}("T_max" => 310.0, "n_segs" => "10", "l_tube" => 10.0, "T_ambient_res" => "Ambient Temperature is 100.0K")
end
```
in the UI - would like to create many `textfield` ..and rerender when model changes
```
[cell(class="q-pa-sm", textfield("", Symbol(""params['$k']"""), label="$k")) for (k,v) in @bind(:params)]
```

Obviously @bind(:params)] does not work.

I was hoping not to create a giant HTML string in the model - but rather use this like a template.

Any ideas

Chuck

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Model definition, the reactive params dictionary, and the attempted textfield/@bind expression shown in the issue. Investigate how StippleUI renders dynamic collections and responds to model changes; done should mean generating one editable field per parameter and rerendering when the dictionary changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.