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

[Bug]: semantic_input type=date not rendering #76

Open
1 task done
Penna88 opened this issue May 26, 2023 · 0 comments
Open
1 task done

[Bug]: semantic_input type=date not rendering #76

Penna88 opened this issue May 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Penna88
Copy link

Penna88 commented May 26, 2023

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

No response

Platform and OS Version

Windows 10

Existing Issues

No response

What happened?

First of all, let me thank you for your extraordinary work to bring shiny_semantic to pyShiny.
I believe it is a terrific idea and I really look forward to seeing a more rich ecosystem around it.

I am trying to use your example to build up a naive pyShiny app but I am facing issues with semantic_input type="date".

In a nutshell, I am not able to use the input selected in other parts of the code.
Although I also tried the standard ui.input_date() and it works, I would like to use a semantic version for a better rendering.

Looking forward for your assistance.

Steps to reproduce

  1. Run the app in the attachment

Expected behavior

a text in output_text("OUT_DataStart")

Attachments

from shiny import App, render
from shiny.ui import output_text, tags
from shiny_semantic import page_semantic
from shiny_semantic.elements import semantic_input

app_ui = page_semantic(
tags.div(
semantic_input(
id="IN_DataEnd",
placeholder="Date",
type="date",
semantic_label="End Date:",
semantic_label_class="blue",
),
output_text("OUT_DataStart", inline=True),
),
title="Input Date Test",
)

def app_server(input, output, session):
@output(id="OUT_DataStart")
@render.text
def _():
return input.IN_DataEnd()

app = App(app_ui, app_server, debug=False)

Screenshots or Videos

No response

Additional Information

No response

@Penna88 Penna88 added the bug Something isn't working label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant