mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-15 02:11:45 +03:00
Adds accordion styles to example code
This commit is contained in:
parent
854bce9e62
commit
70ba3bd590
@ -111,23 +111,34 @@ view ellieLinkConfig model =
|
|||||||
[ { sectionName = "Partial example"
|
[ { sectionName = "Partial example"
|
||||||
, code =
|
, code =
|
||||||
String.join "\n"
|
String.join "\n"
|
||||||
[ "Accordion.view"
|
[ " div [] ["
|
||||||
, " { entries ="
|
, " Accordion.view"
|
||||||
, " [ Accordion.AccordionEntry"
|
, " { entries ="
|
||||||
, " { caret = " ++ Tuple.first settings.icon
|
, " [ Accordion.AccordionEntry"
|
||||||
, " , content = \\() -> " ++ Tuple.first settings.content
|
, " { caret = " ++ Tuple.first settings.icon
|
||||||
, " , entryClass = \"customizable-example\""
|
, " , content = \\() -> " ++ Tuple.first settings.content
|
||||||
, " , headerContent = " ++ Tuple.first settings.headerContent
|
, " , entryClass = \"customizable-example\""
|
||||||
, " , headerId = \"customizable-example-header\""
|
, " , headerContent = " ++ Tuple.first settings.headerContent
|
||||||
, " , headerLevel = Accordion.H4"
|
, " , headerId = \"customizable-example-header\""
|
||||||
, " , isExpanded = True"
|
, " , headerLevel = Accordion.H4"
|
||||||
, " , toggle = Nothing"
|
, " , isExpanded = True"
|
||||||
, " }"
|
, " , toggle = Nothing"
|
||||||
, " []"
|
, " }"
|
||||||
, " ]"
|
, " []"
|
||||||
, " , -- When using Accordion, be sure to wire up Focus management correctly!"
|
, " ]"
|
||||||
, " focus = identity"
|
, " , -- When using Accordion, be sure to wire up Focus management correctly!"
|
||||||
, " }"
|
, " focus = identity"
|
||||||
|
, " }"
|
||||||
|
, " , Accordion.styleAccordion"
|
||||||
|
, " { entryStyles = []"
|
||||||
|
, " , entryExpandedStyles = []"
|
||||||
|
, " , entryClosedStyles = []"
|
||||||
|
, " , headerStyles = []"
|
||||||
|
, " , headerExpandedStyles = []"
|
||||||
|
, " , headerClosedStyles = []"
|
||||||
|
, " , contentStyles = []"
|
||||||
|
, " }"
|
||||||
|
, " ]"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user