Skip to content

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

@Penna88

Description

@Penna88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions