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

Feliz.Bulma.DateTimePicker and other extensions #42

Open
kierepka opened this issue Sep 19, 2021 · 5 comments
Open

Feliz.Bulma.DateTimePicker and other extensions #42

kierepka opened this issue Sep 19, 2021 · 5 comments

Comments

@kierepka
Copy link

Hi,

How to add properly Feliz.Bulma extensions?

Html.p [
        color.hasTextWhite
        Html.text $"Data wpisu : {Db.KeyName}"
        Feliz.Bulma.DateTimePicker.dateTimePicker [
          dateTimePicker.onDateSelected (fun (d:DateTime option) -> () (* handle here *))
          dateTimePicker.defaultValue DateTime.Now
        ]
      ]

Gives error:
Sutil and ReactElement is not compatible

Kind regards

@davedawkins
Copy link
Owner

The main problem here is that the component being used there is a React component, and Sutil does not interoperate with React (at least, not yet).

Having said that, Sutil does have support for the main Bulma (CSS) framework, and I would like it to be able to make use of these extensions. Let me take a look and see what effort is required.

Thanks for logging the issue

@kierepka
Copy link
Author

Ok! I've seen support for other libraries from Feliz.Bulma.*, so I thought there were some ready-made functions for translating React components to "regular" Bulma;)

@davedawkins
Copy link
Owner

davedawkins commented Sep 20, 2021 via email

@kierepka
Copy link
Author

Ok - I did not check it thoroughly. There is Feliz.Bulma and Feliz.Engine.Bulma

@AngelMunoz
Copy link
Contributor

@kierepka you might want to check back again, there's now support to render react elements within Sutil
https://sutil.dev/#documentation-hosting-react

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

3 participants