Questions tagged [elmish]

Use for question relating to the elmish framework for f#. Consider also including the tags [fable-f#] and [f#].

Elmish is an implementation of the in and . It is modular in its design and can target different platforms and rendering libraries, but is typically used with , using elmish-react, and targeting web browsers, using elmish-browser.

Resources

65 questions
2
votes
0 answers

How to access MarkerClicked and InfoWindowClicked of Pin Class?

According to the "https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Maps/Pin.cs". There are two event MarkerClicked and InfoWindowClicked of Pin Class(Clicked has been obsoleted). No ref can be found and try to access the event with…
madeinQuant
  • 1,721
  • 1
  • 18
  • 29
2
votes
1 answer

How should i match the Elmish toNavigable argument types

I'm trying to learn the SAFE Stack at the moment, specifically attempting to handle URL navigation via Elmish; I've followed the example code on the Elmish site that defines a route mapping function and then passes that to the parsePath function.…
2
votes
2 answers

(How) Can I change the font color of a disabled button in F# Fable Elmish?

i tried setting the Color via Style-Color, but it only changes the Color when it's not disabled. Is there a possibility with or without using Fulma? Button.button [ Button.Disabled true Button.Props [ Style [ Color…
Einhorni
  • 79
  • 5
2
votes
0 answers

Integrating a Fable/Elmish app with Stripe checkout

Edit: Someone on gitter has suggested this: https://stripe.com/docs/recipes/elements-react ...so I'm trying that and will report back here. I'm creating a Fable/Elmish app which will take payments via the Stripe 'Checkout' api…
Kit
  • 2,089
  • 1
  • 11
  • 23
2
votes
2 answers

How to pass arguments from html page to compiled js app using Elmish with Fable

In elm you can pass a flag to an elm application like so: Html / JS
The elm app then gets the parameters on…
onemorecupofcoffee
  • 2,237
  • 1
  • 15
  • 21
1
vote
2 answers

How do I listen to the keyboard using Fable in an Elmish app?

Using Fable in an Elmish app, I'd like to listen to the keyboard directly and get each keystroke as a message. The Elmish documentation has a page on Subscriptions, which shows how to convert JavaScript events to messages. In my case, the events are…
redcurry
  • 2,381
  • 2
  • 24
  • 38
1
vote
0 answers

Add SignalR client functionality to a Fable.Elmish application

I found 2 resources from the community 1.Fable.SignalR - A functional type-safe wrapper for SignalR and Fable. I am using Elmish so the package is Fable.SignalR.Elmish 2.fable-signalr - Fable bindings for SignalR 2 Is declared to work only before…
Franco Tiveron
  • 2,364
  • 18
  • 34
1
vote
0 answers

How do I use different CSS files in Bolero pages?

I am new to Bolero. I need two separate layouts both with a separate menu system - one for "normal" web pages, the other for a CMS. That means using two different css files. Is it possible to have two Elmish loops to achieve that? If not, what then?…
1
vote
1 answer

When do Elmish subs get disposed, if at all?

From the Elmish docs: open Elmish open Fable.Core let timer initial = let sub dispatch = JS.setInterval (fun _ -> dispatch (Tick DateTime.Now) ) 1000 |> ignore …
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

Bolero datetime bind

The docs say that you can bind many different data types... My html template:
Callum Linington
  • 14,213
  • 12
  • 75
  • 154
1
vote
1 answer

How do i apply both hard-coded and method classes in Elmish?

I am formatting a web application made using F# and the SAFE stack. I am using a variable to determine a CSS class to change the formatting of a tag, but I also need two hard-coded CSS classes, and I am unsure how to have both. I have this: let…
David McIntyre
  • 218
  • 1
  • 9
1
vote
0 answers

How do I use the "onunload" event to send a message to the server in SAFE Stack?

I've got an application built using the SAFE stack where active clients have corresponding objects on the Server side. When a user closes their browser window, I would like a message to be sent to the server to delete that object. I'm trying to use…
1
vote
1 answer

Will the output of the HTML-to-Fable/Elmish tool also work for Giraffe's ViewEngine?

If I paste the output of an HTML-based design tool into Mangel Maxime's (or, Maxime Mangel's?) HTML-to-Fable/Elmish Convertor, will that output work if provided to Giraffe's ViewEngine (i.e. HTML DSL)? Superficially, both formats look very similar,…
user7817808
  • 111
  • 2
  • 8
1
vote
1 answer

The map wasn't shown, Fabulous for Xamarin.Forms (using Maps, full Elmish)

I modify the example of Fabulous for Xamarin.Forms (Using Maps, full Elmish) : "https://fsprojects.github.io/Fabulous/Fabulous.XamarinForms/views-maps.html". However, the outcome is not same as I expected. The map wasn't shown, please advise how to…
madeinQuant
  • 1,721
  • 1
  • 18
  • 29
1
vote
1 answer

VS Code is looking for files in C:\c:\ directory which does not exist, resulting in many problems with namespaces and modules in my project

I have a project opened in VS Code. The project folder is on my desktop. When in VS Code, I attempt to work on a file but get many problems in the 'PROBLEMS' tab. It says the file is in C:\c:\Users\Me\Desktop, but I don't have a C:\c:\ directory…