Use rune param for Accesskey
This commit is contained in:
parent
e0ccb4549e
commit
141a1a3219
10
attribute/accesskey.go
Normal file
10
attribute/accesskey.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package attribute
|
||||||
|
|
||||||
|
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||||
|
|
||||||
|
func Accesskey(value rune) hatmill.Attrib {
|
||||||
|
return hatmill.Attrib {
|
||||||
|
Key: "accesskey",
|
||||||
|
Value: string([]rune{value}),
|
||||||
|
}
|
||||||
|
}
|
@ -22,14 +22,6 @@ func AcceptCharset(value string) hatmill.Attrib {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accesskey creates a "accesskey" attribute
|
|
||||||
func Accesskey(value string) hatmill.Attrib {
|
|
||||||
return hatmill.Attrib{
|
|
||||||
Key: "accesskey",
|
|
||||||
Value: value,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Action creates a "action" attribute
|
// Action creates a "action" attribute
|
||||||
func Action(value string) hatmill.Attrib {
|
func Action(value string) hatmill.Attrib {
|
||||||
return hatmill.Attrib{
|
return hatmill.Attrib{
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
"attributes": [
|
"attributes": [
|
||||||
{"name": "accept", "type": "string"},
|
{"name": "accept", "type": "string"},
|
||||||
{"name": "accept-charset", "type": "string"},
|
{"name": "accept-charset", "type": "string"},
|
||||||
{"name": "accesskey", "type": "string"},
|
|
||||||
{"name": "action", "type": "string"},
|
{"name": "action", "type": "string"},
|
||||||
{"name": "alt", "type": "string"},
|
{"name": "alt", "type": "string"},
|
||||||
{"name": "async", "type": "bool"},
|
{"name": "async", "type": "bool"},
|
||||||
|
Loading…
Reference in New Issue
Block a user