Skip to content

parameters reinitialize when language is changed (using shi18ny) #38

@brazadas

Description

@brazadas

ALSO happens with everything that is translated in particular the data input from the user...

if the user of an app have altered the initial values of the parameters and then changes the language they are re-rendered and so the current configuration of the parameters is lost

this could be fixed i guess by passing to the update parameter (selected, value, ...) the current value of the input--- that is, all inputs would have to have the corresponding reactive called in the yaml file...
for example
name_column:
show: true
input_type: selectInput
input_params:
label: name_column
choices: data_input_names()
selected: input$name_column
update_param: selected

the only problem with this is that firtsly input$name_column is going to be null, so what we really want is something like
ifelse(is.null(input$name_column), "...", input$name_column)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions