Finalization of order box behavior
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Theme
|
||||
|
||||
open System
|
||||
open System.Web
|
||||
open System.IO
|
||||
open System.Collections.Generic
|
||||
open System.Text.RegularExpressions
|
||||
@@ -137,4 +137,19 @@ let loadTemplateWithVarsAndScripts templateName vars scripts =
|
||||
let loadTemplateWithVarsAndStyles = loadTemplateWithVarsAndScripts
|
||||
|
||||
let loadTemplateWithVarsScriptsAndStyles templateName vars scripts styles =
|
||||
loadTemplateWithVarsArraysScriptsAndStyles templateName vars Map.empty<string, Map<string, string>> scripts styles
|
||||
loadTemplateWithVarsArraysScriptsAndStyles templateName vars Map.empty<string, Map<string, string>> scripts styles
|
||||
|
||||
|
||||
let htmlAttributes (attributes: Map<string, string>) =
|
||||
" " + (attributes
|
||||
|> Map.toArray
|
||||
|> Array.map (fun (attribute, value) -> attribute+"='"+HttpUtility.HtmlEncode value + "'")
|
||||
|> String.concat " ")
|
||||
|
||||
let PosButton (text: string) (classes: string) (attributes: string) =
|
||||
let vars = map [
|
||||
"text", text
|
||||
"classes", classes
|
||||
"attributes", attributes
|
||||
]
|
||||
loadTemplateWithVars "components/posButton" vars
|
||||
Reference in New Issue
Block a user