Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleChromeLabs/howto-components
/ functions
Functions
171 in github.com/GoogleChromeLabs/howto-components
⨍
Functions
171
◇
Types & classes
26
↓ 23 callers
Method
next
()
sectionizer.js:44
↓ 10 callers
Function
a
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 8 callers
Method
_setChecked
* Any user action (a keypress or mouse click) eventually funnels down to * this method which ensures that only the passed in element is checked.
elements/howto-radio-group/howto-radio-group.js:335
↓ 7 callers
Method
_allTabs
* `_allTabs()` returns all the tabs in the tab panel.
elements/howto-tabs/howto-tabs.js:185
↓ 6 callers
Method
_allHeadings
* `_allHeadings` returns all the headings in the accordion.
elements/howto-accordion/howto-accordion.js:249
↓ 5 callers
Method
pushSegment
(meta = {})
sectionizer.js:64
↓ 4 callers
Method
_selectTab
* `_selectTab()` marks the given tab as selected. * Additionally, it unhides the panel corresponding to the given tab.
elements/howto-tabs/howto-tabs.js:255
↓ 4 callers
Function
b
(b)
site-resources/scripts/resizeobserver.min.js:1
↓ 4 callers
Function
i
(a,b,c,d)
site-resources/scripts/resizeobserver.min.js:1
↓ 4 callers
Function
template
(path)
build-documentation.js:203
↓ 3 callers
Method
_panelForHeading
* `_panelForHeading` returns the panel that the given heading controls.
elements/howto-accordion/howto-accordion.js:256
↓ 3 callers
Method
_toggleChecked
* `_toggleChecked()` calls the `checked` setter and flips its state. * Because `_toggleChecked()` is only caused by a user action, it will *
elements/howto-checkbox/howto-checkbox.js:219
↓ 3 callers
Method
_togglePressed
* `_togglePressed()` calls the `pressed` setter and flips its state. * Because `_togglePressed()` is only caused by a user action, it will *
elements/howto-toggle-button/howto-toggle-button.js:207
↓ 3 callers
Method
_updateLabel
* Remove any previous labels. * Find the new element to label. * Label it.
elements/howto-label/howto-label.js:96
↓ 2 callers
Method
_allPanels
* `_allPanels()` returns all the panels in the tab panel. This function * could memoize the result if the DOM queries ever become a performance
elements/howto-tabs/howto-tabs.js:178
↓ 2 callers
Method
_animate
* `_animate` animates a translation on the Y axis from one offset to * another. It takes care of promoting all the elements, making sure they
elements/howto-accordion/howto-accordion.js:361
↓ 2 callers
Method
_checkNode
* Mark the passed in node as being checked by setting `aria-checked=true`, * and make it focusable by setting `tabindex=0`.
elements/howto-radio-group/howto-radio-group.js:359
↓ 2 callers
Method
_collapsePanel
* `_collapsePanel` puts the given panel in the collapsed state.
elements/howto-accordion/howto-accordion.js:320
↓ 2 callers
Method
_currentLabelTarget
()
elements/howto-label/howto-label.js:132
↓ 2 callers
Method
_expandPanel
* `_expandPanel` puts the given panel in the expanded state.
elements/howto-accordion/howto-accordion.js:313
↓ 2 callers
Method
_linkPanels
* `_linkPanels()` links up tabs with their adjacent panels using * `aria-controls` and `aria-labelledby`. Additionally, the method makes * s
elements/howto-tabs/howto-tabs.js:143
↓ 2 callers
Method
_uncheckAll
* Only one `HowtoRadioButton` should be checked at any time. To ensure * this, loop through all `HowtoRadioButton` children and set them to
elements/howto-radio-group/howto-radio-group.js:346
↓ 2 callers
Method
_upgradeProperty
(prop)
elements/howto-toggle-button/howto-toggle-button.js:101
↓ 2 callers
Method
_upgradeProperty
(prop)
elements/howto-checkbox/howto-checkbox.js:113
↓ 2 callers
Function
copy
(a, b)
build-documentation.js:209
↓ 2 callers
Function
d
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callers
Function
eatWhitespace
(ss)
sectionizer.js:85
↓ 2 callers
Function
f
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callers
Function
p
(a,b,c)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callers
Function
parseCode
(ss)
sectionizer.js:136
↓ 2 callers
Function
parseExpression
(ss)
sectionizer.js:90
↓ 2 callers
Function
removeCopyright
(sections)
build-documentation.js:145
↓ 2 callers
Function
requestAnimationFramePromise
()
elements/howto-accordion/howto-accordion.js:684
↓ 2 callers
Function
u
(a,b)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callers
Method
_allPanels
* `_allPanels` returns all the panels in the accordion. This function could * memoize the result if the DOM queries ever become a performance iss
elements/howto-accordion/howto-accordion.js:242
↓ 1 callers
Method
_animateIn
* `_animateIn` determines the height of the panel and uses that value for * an expanding animation.
elements/howto-accordion/howto-accordion.js:342
↓ 1 callers
Method
_animateOut
* Same as `_animateIn` but in the other direction.
elements/howto-accordion/howto-accordion.js:350
↓ 1 callers
Method
_animatePanelForHeading
* `_animatePanelForHeading` animates the expansion of a panel, provided * there is no other animation running.
elements/howto-accordion/howto-accordion.js:169
↓ 1 callers
Method
_collapseHeading
* `_collapseHeading` puts the given heading in the collapsed state.
elements/howto-accordion/howto-accordion.js:334
↓ 1 callers
Method
_expandHeading
* `_expandHeading` puts the given heading in the expanded state.
elements/howto-accordion/howto-accordion.js:327
↓ 1 callers
Method
_findTarget
* If there is a for property, return the element with that id. * Else, return the explicitly labeled child. * Else, return the first element
elements/howto-label/howto-label.js:144
↓ 1 callers
Method
_firstHeading
* `_firstHeading` returns the first heading.
elements/howto-accordion/howto-accordion.js:297
↓ 1 callers
Method
_firstTab
* `_firstTab()` returns the first tab.
elements/howto-tabs/howto-tabs.js:216
↓ 1 callers
Method
_focusNode
* Call `focus()` on the passed in node to direct keyboard focus to it.
elements/howto-radio-group/howto-radio-group.js:367
↓ 1 callers
Method
_hide
()
elements/howto-tooltip/howto-tooltip.js:79
↓ 1 callers
Method
_isHeading
* `_isHeading` returns true if the given element * is a `<howto-accordion-heading>`.
elements/howto-accordion/howto-accordion.js:152
↓ 1 callers
Method
_lastHeading
* `_lastHeading` returns the last heading.
elements/howto-accordion/howto-accordion.js:305
↓ 1 callers
Method
_lastTab
* `_lastTab()` returns the last tab.
elements/howto-tabs/howto-tabs.js:224
↓ 1 callers
Method
_nextHeading
* `_nextHeading` gets the heading that comes after the currently selected * one, wrapping around when reaching the last heading.
elements/howto-accordion/howto-accordion.js:286
↓ 1 callers
Method
_nextRadioButton
* A helper for when the user tries to moves forwards through the * `HowtoRadioGroup` using their keyboard. Return the `HowtoRadioButton` * c
elements/howto-radio-group/howto-radio-group.js:284
↓ 1 callers
Method
_nextTab
* `_nextTab()` gets the tab that comes after the currently selected one, * wrapping around when reaching the last tab.
elements/howto-tabs/howto-tabs.js:233
↓ 1 callers
Method
_panelForTab
* `_panelForTab()` returns the panel that the given tab controls.
elements/howto-tabs/howto-tabs.js:192
↓ 1 callers
Method
_prevHeading
* `_prevHeading` returns the heading that comes before the currently * selected one, wrapping around when reaching the first one.
elements/howto-accordion/howto-accordion.js:269
↓ 1 callers
Method
_prevRadioButton
* A helper for when the user tries to moves backwards through the * `HowtoRadioGroup` using their keyboard. Return the `HowtoRadioButton` *
elements/howto-radio-group/howto-radio-group.js:267
↓ 1 callers
Method
_prevTab
* `_prevTab()` returns the tab that comes before the currently selected * one, wrapping around when reaching the first one.
elements/howto-tabs/howto-tabs.js:201
↓ 1 callers
Method
_setCheckedToNextButton
* This method is called in response to a user pressing a key to move * forwards through the `HowtoRadioGroup`. Check to see if the currently
elements/howto-radio-group/howto-radio-group.js:319
↓ 1 callers
Method
_setCheckedToPrevButton
* This method is called in response to a user pressing a key to move * backwards through the `HowtoRadioGroup`. Check to see if the currently
elements/howto-radio-group/howto-radio-group.js:303
↓ 1 callers
Method
_upgradeProperty
* Check if a property has an instance value. If so, copy the value, and * delete the instance property so it doesn't shadow the class property
elements/howto-tabs/howto-tabs.js:376
↓ 1 callers
Function
addHelperFunctionsToContext
(context)
build-documentation.js:155
↓ 1 callers
Function
buildMocha
* `buildMocha` builds a new instance of the Mocha test runner that has sourced * all the e2e test files. * @returns A promise that resolves when Moc
run-e2e-tests.js:52
↓ 1 callers
Function
c
(b)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callers
Method
codeForSegment
(segment)
sectionizer.js:80
↓ 1 callers
Function
copyStaticFiles
()
build-documentation.js:52
↓ 1 callers
Function
e
(d)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callers
Function
g
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callers
Function
generateDocs
()
build-documentation.js:37
↓ 1 callers
Function
h
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callers
Method
isEOF
()
sectionizer.js:54
↓ 1 callers
Function
main
()
run-e2e-tests.js:88
↓ 1 callers
Function
parseBlock
(ss)
sectionizer.js:149
↓ 1 callers
Function
parseBlockComment
(ss)
sectionizer.js:124
↓ 1 callers
Function
parseComment
(ss)
sectionizer.js:101
↓ 1 callers
Function
parseDoubleQuotedString
(ss)
sectionizer.js:159
↓ 1 callers
Function
parseElement
(name)
build-documentation.js:71
↓ 1 callers
Function
parseLineComment
(ss)
sectionizer.js:114
↓ 1 callers
Function
parseSingleQuotedString
(ss)
sectionizer.js:179
↓ 1 callers
Function
parseTemplateString
(ss)
sectionizer.js:169
↓ 1 callers
Function
removeHiddenSections
(sections)
build-documentation.js:128
↓ 1 callers
Method
reset
* `reset()` marks all tabs as deselected and hides all the panels.
elements/howto-tabs/howto-tabs.js:242
↓ 1 callers
Method
resetSegment
()
sectionizer.js:58
↓ 1 callers
Function
runMocha
(mocha)
run-e2e-tests.js:119
↓ 1 callers
Function
runTests
(address, drivers)
run-e2e-tests.js:126
↓ 1 callers
Function
startServer
* Start a webserver on an OS-chosen port serving the `docs` directory. * @returns A promise that resolves once the server is started.
run-e2e-tests.js:36
↓ 1 callers
Function
transitionEndPromise
(element)
elements/howto-accordion/howto-accordion.js:675
Function
C
(a)
site-resources/scripts/resizeobserver.min.js:1
Method
_onChange
* `_onChange` handles the `change` event. The event’s * target is the heading that has been instructed to expand by click, * keyboard input.
elements/howto-accordion/howto-accordion.js:161
Method
_onClick
* `_onClick` is the event handler for a click. A click toggles the expanded * and the collapsed state.
elements/howto-accordion/howto-accordion.js:585
Method
_onClick
(event)
elements/howto-toggle-button/howto-toggle-button.js:198
Method
_onClick
* `_onClick()` handles clicks inside the tab panel.
elements/howto-tabs/howto-tabs.js:318
Method
_onClick
(event)
elements/howto-label/howto-label.js:122
Method
_onClick
(event)
elements/howto-checkbox/howto-checkbox.js:209
Method
_onClick
* If the user clicks inside of the `HowtoRadioGroup`, verify that the * clicked element has a `role` of `radio`, and if so, make it the new
elements/howto-radio-group/howto-radio-group.js:376
Method
_onKeyDown
* `_onKeyDown` handles key presses inside the accordion.
elements/howto-accordion/howto-accordion.js:186
Method
_onKeyDown
(event)
elements/howto-toggle-button/howto-toggle-button.js:181
Method
_onKeyDown
* `_onKeyDown()` handles key presses inside the tab panel.
elements/howto-tabs/howto-tabs.js:272
Method
_onKeyDown
* If the user pressed an arrow key, call preventDefault to prevent the * page from scrolling. If the up or left arrow keys were pressed, select
elements/howto-radio-group/howto-radio-group.js:205
Method
_onKeyUp
(event)
elements/howto-checkbox/howto-checkbox.js:193
Method
_onSlotChange
* `_onSlotChange()` is called whenever an element is added or removed from * one of the shadow DOM slots.
elements/howto-tabs/howto-tabs.js:130
Method
_onSlotChange
(event)
elements/howto-label/howto-label.js:118
Method
_show
()
elements/howto-tooltip/howto-tooltip.js:75
next →
1–100 of 171, ranked by callers