Packages
mishka_chelekom
0.0.9
0.0.10-alpha.5
0.0.10-alpha.4
0.0.10-alpha.3
0.0.10-alpha.2
0.0.10-alpha.1
0.0.9
0.0.9-rc.2
0.0.9-rc.1
0.0.9-beta.5
0.0.9-beta.4
0.0.9-beta.3
0.0.9-beta.2
0.0.9-beta.1
0.0.9-alpha.20
0.0.9-alpha.18
0.0.9-alpha.17
0.0.9-alpha.16
0.0.9-alpha.15
0.0.9-alpha.14
0.0.9-alpha.13
0.0.9-alpha.12
0.0.9-alpha.11
0.0.9-alpha.10
0.0.9-alpha.9
0.0.9-alpha.8
0.0.9-alpha.7
0.0.9-alpha.6
0.0.9-alpha.5
0.0.9-alpha.4
0.0.9-alpha.3
0.0.9-alpha.2
0.0.9-alpha.1
0.0.8
0.0.8-rc.2
0.0.8-rc.1
0.0.8-beta.5
0.0.8-beta.4
0.0.8-beta.3
0.0.8-beta.2
0.0.8-beta.1
0.0.8-alpha.4
0.0.8-alpha.3
0.0.8-alpha.2
0.0.8-alpha.1
0.0.7
0.0.6
0.0.6-alpha.2
0.0.6-alpha.1
0.0.5
0.0.5-beta.2
0.0.5-beta.1
0.0.5-alpha.12
0.0.5-alpha.11
0.0.5-alpha.10
0.0.5-alpha.9
0.0.5-alpha.8
0.0.5-alpha.7
0.0.5-alpha.6
0.0.5-alpha.5
0.0.5-alpha.4
0.0.5-alpha.3
0.0.5-alpha.2
0.0.5-alpha.1
0.0.4
0.0.4-beta.3
0.0.4-beta.2
0.0.4-beta.1
0.0.4-alpha.9
0.0.4-alpha.8
0.0.4-alpha.7
0.0.4-alpha.6
0.0.4-alpha.5
0.0.4-alpha.4
0.0.4-alpha.3
0.0.4-alpha.2
0.0.4-alpha.1
0.0.3
0.0.3-alpha.3
0.0.3-alpha.2
0.0.3-alpha.1
0.0.2
0.0.2-rc.2
0.0.2-rc.1
0.0.2-beta.4
0.0.2-beta.3
0.0.2-beta.2
0.0.2-beta.1
0.0.2-alpha.3
0.0.2-alpha.2
0.0.2-alpha.1
0.0.1
Mishka Chelekom is a fully featured components and UI kit library for Phoenix & Phoenix LiveView
Current section
Files
Jump to
Current section
Files
priv/headless/toggle_group.exs
[
toggle_group: [
name: "toggle_group",
category: "forms",
doc_url: "https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/",
args: [type: ["toggle_group"], only: ["toggle_group"], helpers: [], module: ""],
optional: [],
necessary: [],
scripts: [
%{
module: "ToggleGroup",
type: "file",
file: "toggle_group.js",
imports: "import ToggleGroup from \"./toggle_group.js\";"
}
],
headless: [
anatomy: [
root: [
element: "div",
role: "group",
aria: ["aria-orientation", "aria-disabled"],
data_attributes: ["data-orientation", "data-multiple", "data-disabled"],
note: "carries the ToggleGroup hook; reads name/multiple/orientation/loop from data-*",
required: true
],
parts: [
item: [
element: "button",
role: "button",
aria: ["aria-pressed", "aria-disabled"],
data_attributes: ["data-pressed", "data-disabled", "data-value"]
],
value_inputs: [
element: "span",
note: "hidden input(s) carrying the pressed value(s) for form submission"
]
]
],
aria_pattern: [
pattern: "Toolbar",
keyboard: [
"Arrow (along orientation): move focus between toggles (looping)",
"Home / End: first / last toggle",
"Enter / Space: toggle pressed state"
]
],
state_attributes: ["data-pressed", "data-disabled", "data-orientation", "data-multiple"],
hooks: ["ToggleGroup"]
]
]
]