elm

    0熱度

    1回答

    我有一個相當簡單的榆樹申請 https://github.com/chrisortman/team-player 我無法弄清楚如何實現的東西,會讓我點擊下表中的單元格並拖動到其他幾個單元格上以選擇它們。 它似乎onMouseOver是我想要的,但我不知道如何將它與Mouse.isDown信號相結合。我可以結合Mouse.isDown和Mouse.position,但是我不知道如何將位置綁定回表格單

    2熱度

    2回答

    JavaScript的switch支持下通: function update(action, model) { switch (action) { case SHUFFLE: return shuffle(model); case MOVE_LEFT: case MOVE_RIGHT: case MOVE_UP: case

    26熱度

    1回答

    我需要標記我Elm.Http元素自定義 「數據 - *」 的屬性,例如: <tr data-row="1">...</tr> 我曾嘗試以下: import Html exposing (..) import Html.Attributes exposing (..) import Json.Encode as JsEncode view ... = tr [ property

    1熱度

    1回答

    我正在學習使用elm構建UI。 我需要添加一些新功能,在我們現有的應用程序中使用extjs和spring mvc。 首先,將基於elm的用戶界面添加到基於extjs的用戶界面中是一件相對容易的任務嗎? 是否可以使用spring mvc作爲後端? 是否有任何使用spring mvc和elm的示例應用程序。我還沒有找到。 關於如何將elm引入現有的extjs和spring mvc應用程序的任何提示。

    11熱度

    1回答

    考慮這個程序: import Graphics.Element exposing (..) import Debug main : Element main = let one = Debug.log "one" 1 two = Debug.log "two" 2 three = Debug.log "three" 3 in s

    0熱度

    2回答

    使用Elm.fullscreen考慮下面的程序時觸發兩次: module App where import Color exposing (..) import Graphics.Collage exposing (..) import Graphics.Element exposing (..) import Window import Debug view : (Int, I

    6熱度

    1回答

    我到目前爲止看到創建一個「包裝」功能周圍Basics.+然後部分應用的例子全部: sum x y = x + y plusOne = sum 1 不過,我敢肯定,有以避免額外的包裝方式。

    1熱度

    1回答

    考慮一個模型: model : Signal Model 並將下列信號: clickPosition = Mouse.position |> Signal.sampleOn Mouse.clicks 和: dimensions = Window.dimensions 我想獲得以下desiredSignal: (0,0) (30,20) (60,70) click

    3熱度

    2回答

    有沒有辦法獲得給定信號的當前值?或者,這是寫作慣用榆樹時不應該做的事情嗎?

    2熱度

    1回答

    雖然elm-make成功,我得到以下錯誤在瀏覽器中:未定義 無法讀取屬性「孩子」我想這是因爲我有信號循環依賴: model -> clicks -> model 下面是相關代碼: model : Signal Model model = Signal.foldp update initialModel clicks clicks : Signal Action clicks