Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion frontend/Realm/Utils.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Realm.Utils exposing (Field, Form, Rendered(..), button, contains, edges, emptyField, err, escEnter, fi, fieldError, fieldNoError, fieldValid, fieldValue, fieldsNoError, form, formE, html, htmlLine, htmlWith, iff, link, mapAIth, mapIth, match, matchCtx, matchCtx2, maybe, maybeE, maybeS, onEnter, plainLink, rendered, renderedE, result, val, withError, yesno, zip)
module Realm.Utils exposing (Field, Form, Rendered(..), button, contains, edges, emptyField, err, escEnter, fi, fieldError, fieldNoError, fieldValid, fieldValue, fieldsNoError, form, formE, html, htmlLine, htmlWith, iff, link, mapAIth, mapIth, match, matchCtx, matchCtx2, maybe, maybeE, maybeS, newTabLink, onEnter, plainLink, rendered, renderedE, result, val, withError, yesno, zip)

import Array exposing (Array)
import Dict exposing (Dict)
Expand Down Expand Up @@ -183,6 +183,15 @@ plainLink url attrs label =
E.link attrs
{ label = label, url = url }

newTabLink :
String
-> List (E.Attribute msg)
-> E.Element msg
-> E.Element msg
newTabLink url attrs label =
E.newTabLink attrs
Comment thread
akashacko marked this conversation as resolved.
{ label = label, url = url }


maybeE : (a -> JE.Value) -> Maybe a -> JE.Value
maybeE fn m =
Expand Down