Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An empty tile type to display nothing? #201

Open
TransGirlCodes opened this issue Dec 13, 2016 · 1 comment
Open

An empty tile type to display nothing? #201

TransGirlCodes opened this issue Dec 13, 2016 · 1 comment

Comments

@TransGirlCodes
Copy link

Hi,

I have a basic interactive UI element, here a checkbox is initially false, and when ticked, allows two other text input boxes to be shown for user interaction, of course this goes into a main(window) function body:

use_windows = Signal(false)
    window_check = checkbox("Use sliding windows") >>> use_windows
    wsize = textinput("100", label = "Window size")
    wstep = textinput("100", label = "Window step")
    window_box = map(use_windows) do val
        vbox(
        window_check,
        if val
            hbox(wsize, wstep)
        end
        )
    end

However in my rendered web ui, when the box is unticked - hiding the two text inputs, the word 'nothing' is printed underneath. I wondered if to solve this there is some blank tile which draws nothing is available for me to add as an else clause?

Thanks for Escher, I'm enjoying it very much,
Ben.

@shashi
Copy link
Member

shashi commented Dec 14, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants