@@ -6,116 +6,116 @@ open Oxpecker.ViewEngine
66[<AutoOpen>]
77module CoreAttributes =
88 type HtmlTag with
9- /// issues a GET to the specified URL
9+ /// Issues a GET to the specified URL
1010 member this.hxGet
1111 with set ( value : string | null ) = this.attr( " hx-get" , value) |> ignore
12- /// issues a POST to the specified URL
12+ /// Issues a POST to the specified URL
1313 member this.hxPost
1414 with set ( value : string | null ) = this.attr( " hx-post" , value) |> ignore
15- /// handle events with inline scripts on elements
15+ /// Handle events with inline scripts on elements
1616 member this.hxOn ( event , [<StringSyntax( " js" ) >] value ) = this.attr( " hx-on:" + event, value)
17- /// push a URL into the browser location bar to create history
17+ /// Push a URL into the browser location bar to create history
1818 member this.hxPushUrl
1919 with set ( value : string | null ) = this.attr( " hx-push-url" , value) |> ignore
20- /// select content to swap in from a response
20+ /// Select content to swap in from a response
2121 [<StringSyntax( " css" ) >]
2222 member this.hxSelect
2323 with set ( value : string | null ) = this.attr( " hx-select" , value) |> ignore
24- /// select content to swap in from a response, somewhere other than the target (out of band)
24+ /// Select content to swap in from a response, somewhere other than the target (out of band)
2525 [<StringSyntax( " css" ) >]
2626 member this.hxSelectOob
2727 with set ( value : string | null ) = this.attr( " hx-select-oob" , value) |> ignore
28- /// controls how content will swap in (outerHTML, beforeend, afterend, …)
28+ /// Controls how content will swap in (outerHTML, beforeend, afterend, …)
2929 member this.hxSwap
3030 with set ( value : string | null ) = this.attr( " hx-swap" , value) |> ignore
31- /// mark element to swap in from a response (out of band)
31+ /// Mark element to swap in from a response (out of band)
3232 member this.hxSwapOob
3333 with set ( value : string | null ) = this.attr( " hx-swap-oob" , value) |> ignore
34- /// specifies the target element to be swapped
34+ /// Specifies the target element to be swapped
3535 [<StringSyntax( " css" ) >]
3636 member this.hxTarget
3737 with set ( value : string | null ) = this.attr( " hx-target" , value) |> ignore
38- /// specifies the event that triggers the request
38+ /// Specifies the event that triggers the request
3939 member this.hxTrigger
4040 with set ( value : string | null ) = this.attr( " hx-trigger" , value) |> ignore
41- /// add values to submit with the request (JSON format)
41+ /// Add values to submit with the request (JSON format)
4242 member this.hxVals
4343 with set ( value : string | null ) = this.attr( " hx-vals" , value) |> ignore
4444
4545
4646[<AutoOpen>]
4747module AdditionalAttributes =
4848 type HtmlTag with
49- /// add progressive enhancement for links and forms
49+ /// Add progressive enhancement for links and forms
5050 member this.hxBoost
5151 with set ( value : bool ) = this.attr( " hx-boost" , ( if value then " true" else " false" )) |> ignore
52- /// shows a confirm() dialog before issuing a request
52+ /// Shows a confirm() dialog before issuing a request
5353 member this.hxConfirm
5454 with set ( value : string | null ) = this.attr( " hx-confirm" , value) |> ignore
55- /// issues a DELETE to the specified URL
55+ /// Issues a DELETE to the specified URL
5656 member this.hxDelete
5757 with set ( value : string | null ) = this.attr( " hx-delete" , value) |> ignore
58- /// disables htmx processing for the given node and any children nodes
58+ /// Disables htmx processing for the given node and any children nodes
5959 member this.hxDisable
6060 with set ( value : bool ) =
6161 if value then
6262 this.attr( " hx-disable" , " true" ) |> ignore
63- /// adds the disabled attribute to the specified elements while a request is in flight
63+ /// Adds the disabled attribute to the specified elements while a request is in flight
6464 member this.hxDisabledElt
6565 with set ( value : string | null ) = this.attr( " hx-disabled-elt" , value) |> ignore
66- /// control and disable automatic attribute inheritance for child nodes
66+ /// Control and disable automatic attribute inheritance for child nodes
6767 member this.hxDisinherit
6868 with set ( value : string | null ) = this.attr( " hx-disinherit" , value) |> ignore
69- /// changes the request encoding type
69+ /// Changes the request encoding type
7070 member this.hxEncoding
7171 with set ( value : string | null ) = this.attr( " hx-encoding" , value) |> ignore
72- /// extensions to use for this element
72+ /// Extensions to use for this element
7373 member this.hxExt
7474 with set ( value : string | null ) = this.attr( " hx-ext" , value) |> ignore
75- /// adds to the headers that will be submitted with the request
75+ /// Adds to the headers that will be submitted with the request
7676 member this.hxHeaders
7777 with set ( value : string | null ) = this.attr( " hx-headers" , value) |> ignore
78- /// prevent sensitive data being saved to the history cache
78+ /// Prevent sensitive data being saved to the history cache
7979 member this.hxHistory
8080 with set ( value : bool ) = this.attr( " hx-history" , ( if value then " true" else " false" )) |> ignore
81- /// the element to snapshot and restore during history navigation
81+ /// The element to snapshot and restore during history navigation
8282 member this.hxHistoryElt
8383 with set ( value : bool ) =
8484 if value then
8585 this.attr( " hx-history-elt" , " " ) |> ignore
86- /// include additional data in requests
86+ /// Include additional data in requests
8787 member this.hxInclude
8888 with set ( value : string | null ) = this.attr( " hx-include" , value) |> ignore
89- /// the element to put the htmx-request class on during the request
89+ /// The element to put the htmx-request class on during the request
9090 [<StringSyntax( " css" ) >]
9191 member this.hxIndicator
9292 with set ( value : string | null ) = this.attr( " hx-indicator" , value) |> ignore
93- /// filters the parameters that will be submitted with a request
93+ /// Filters the parameters that will be submitted with a request
9494 member this.hxParams
9595 with set ( value : string | null ) = this.attr( " hx-params" , value) |> ignore
96- /// issues a PATCH to the specified URL
96+ /// Issues a PATCH to the specified URL
9797 member this.hxPatch
9898 with set ( value : string | null ) = this.attr( " hx-patch" , value) |> ignore
99- /// specifies elements to keep unchanged between requests
99+ /// Specifies elements to keep unchanged between requests
100100 member this.hxPreserve
101101 with set ( value : bool ) =
102102 if value then
103103 this.attr( " hx-preserve" , " " ) |> ignore
104- /// shows a prompt() before submitting a request
104+ /// Shows a prompt() before submitting a request
105105 member this.hxPrompt
106106 with set ( value : string | null ) = this.attr( " hx-prompt" , value) |> ignore
107- /// issues a PUT to the specified URL
107+ /// Issues a PUT to the specified URL
108108 member this.hxPut
109109 with set ( value : string | null ) = this.attr( " hx-put" , value) |> ignore
110- /// replace the URL in the browser location bar
110+ /// Replace the URL in the browser location bar
111111 member this.hxReplaceUrl
112112 with set ( value : string | null ) = this.attr( " hx-replace-url" , value) |> ignore
113- /// configures various aspects of the request
113+ /// Configures various aspects of the request
114114 member this.hxRequest
115115 with set ( value : string | null ) = this.attr( " hx-request" , value) |> ignore
116- /// control how requests made by different elements are synchronized
116+ /// Control how requests made by different elements are synchronized
117117 member this.hxSync
118118 with set ( value : string | null ) = this.attr( " hx-sync" , value) |> ignore
119- /// force elements to validate themselves before a request
119+ /// Force elements to validate themselves before a request
120120 member this.hxValidate
121121 with set ( value : bool ) = this.attr( " hx-validate" , ( if value then " true" else " false" )) |> ignore
0 commit comments