MCPcopy Create free account

hub / github.com/GoogleChromeLabs/howto-components / functions

Functions171 in github.com/GoogleChromeLabs/howto-components

↓ 23 callersMethodnext
()
sectionizer.js:44
↓ 10 callersFunctiona
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 8 callersMethod_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 callersMethod_allTabs
* `_allTabs()` returns all the tabs in the tab panel.
elements/howto-tabs/howto-tabs.js:185
↓ 6 callersMethod_allHeadings
* `_allHeadings` returns all the headings in the accordion.
elements/howto-accordion/howto-accordion.js:249
↓ 5 callersMethodpushSegment
(meta = {})
sectionizer.js:64
↓ 4 callersMethod_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 callersFunctionb
(b)
site-resources/scripts/resizeobserver.min.js:1
↓ 4 callersFunctioni
(a,b,c,d)
site-resources/scripts/resizeobserver.min.js:1
↓ 4 callersFunctiontemplate
(path)
build-documentation.js:203
↓ 3 callersMethod_panelForHeading
* `_panelForHeading` returns the panel that the given heading controls.
elements/howto-accordion/howto-accordion.js:256
↓ 3 callersMethod_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 callersMethod_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 callersMethod_updateLabel
* Remove any previous labels. * Find the new element to label. * Label it.
elements/howto-label/howto-label.js:96
↓ 2 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_collapsePanel
* `_collapsePanel` puts the given panel in the collapsed state.
elements/howto-accordion/howto-accordion.js:320
↓ 2 callersMethod_currentLabelTarget
()
elements/howto-label/howto-label.js:132
↓ 2 callersMethod_expandPanel
* `_expandPanel` puts the given panel in the expanded state.
elements/howto-accordion/howto-accordion.js:313
↓ 2 callersMethod_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 callersMethod_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 callersMethod_upgradeProperty
(prop)
elements/howto-toggle-button/howto-toggle-button.js:101
↓ 2 callersMethod_upgradeProperty
(prop)
elements/howto-checkbox/howto-checkbox.js:113
↓ 2 callersFunctioncopy
(a, b)
build-documentation.js:209
↓ 2 callersFunctiond
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callersFunctioneatWhitespace
(ss)
sectionizer.js:85
↓ 2 callersFunctionf
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callersFunctionp
(a,b,c)
site-resources/scripts/resizeobserver.min.js:1
↓ 2 callersFunctionparseCode
(ss)
sectionizer.js:136
↓ 2 callersFunctionparseExpression
(ss)
sectionizer.js:90
↓ 2 callersFunctionremoveCopyright
(sections)
build-documentation.js:145
↓ 2 callersFunctionrequestAnimationFramePromise
()
elements/howto-accordion/howto-accordion.js:684
↓ 2 callersFunctionu
(a,b)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callersMethod_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 callersMethod_animateIn
* `_animateIn` determines the height of the panel and uses that value for * an expanding animation.
elements/howto-accordion/howto-accordion.js:342
↓ 1 callersMethod_animateOut
* Same as `_animateIn` but in the other direction.
elements/howto-accordion/howto-accordion.js:350
↓ 1 callersMethod_animatePanelForHeading
* `_animatePanelForHeading` animates the expansion of a panel, provided * there is no other animation running.
elements/howto-accordion/howto-accordion.js:169
↓ 1 callersMethod_collapseHeading
* `_collapseHeading` puts the given heading in the collapsed state.
elements/howto-accordion/howto-accordion.js:334
↓ 1 callersMethod_expandHeading
* `_expandHeading` puts the given heading in the expanded state.
elements/howto-accordion/howto-accordion.js:327
↓ 1 callersMethod_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 callersMethod_firstHeading
* `_firstHeading` returns the first heading.
elements/howto-accordion/howto-accordion.js:297
↓ 1 callersMethod_firstTab
* `_firstTab()` returns the first tab.
elements/howto-tabs/howto-tabs.js:216
↓ 1 callersMethod_focusNode
* Call `focus()` on the passed in node to direct keyboard focus to it.
elements/howto-radio-group/howto-radio-group.js:367
↓ 1 callersMethod_hide
()
elements/howto-tooltip/howto-tooltip.js:79
↓ 1 callersMethod_isHeading
* `_isHeading` returns true if the given element * is a `<howto-accordion-heading>`.
elements/howto-accordion/howto-accordion.js:152
↓ 1 callersMethod_lastHeading
* `_lastHeading` returns the last heading.
elements/howto-accordion/howto-accordion.js:305
↓ 1 callersMethod_lastTab
* `_lastTab()` returns the last tab.
elements/howto-tabs/howto-tabs.js:224
↓ 1 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_panelForTab
* `_panelForTab()` returns the panel that the given tab controls.
elements/howto-tabs/howto-tabs.js:192
↓ 1 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_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 callersFunctionaddHelperFunctionsToContext
(context)
build-documentation.js:155
↓ 1 callersFunctionbuildMocha
* `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 callersFunctionc
(b)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callersMethodcodeForSegment
(segment)
sectionizer.js:80
↓ 1 callersFunctioncopyStaticFiles
()
build-documentation.js:52
↓ 1 callersFunctione
(d)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callersFunctiong
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callersFunctiongenerateDocs
()
build-documentation.js:37
↓ 1 callersFunctionh
(a)
site-resources/scripts/resizeobserver.min.js:1
↓ 1 callersMethodisEOF
()
sectionizer.js:54
↓ 1 callersFunctionmain
()
run-e2e-tests.js:88
↓ 1 callersFunctionparseBlock
(ss)
sectionizer.js:149
↓ 1 callersFunctionparseBlockComment
(ss)
sectionizer.js:124
↓ 1 callersFunctionparseComment
(ss)
sectionizer.js:101
↓ 1 callersFunctionparseDoubleQuotedString
(ss)
sectionizer.js:159
↓ 1 callersFunctionparseElement
(name)
build-documentation.js:71
↓ 1 callersFunctionparseLineComment
(ss)
sectionizer.js:114
↓ 1 callersFunctionparseSingleQuotedString
(ss)
sectionizer.js:179
↓ 1 callersFunctionparseTemplateString
(ss)
sectionizer.js:169
↓ 1 callersFunctionremoveHiddenSections
(sections)
build-documentation.js:128
↓ 1 callersMethodreset
* `reset()` marks all tabs as deselected and hides all the panels.
elements/howto-tabs/howto-tabs.js:242
↓ 1 callersMethodresetSegment
()
sectionizer.js:58
↓ 1 callersFunctionrunMocha
(mocha)
run-e2e-tests.js:119
↓ 1 callersFunctionrunTests
(address, drivers)
run-e2e-tests.js:126
↓ 1 callersFunctionstartServer
* 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 callersFunctiontransitionEndPromise
(element)
elements/howto-accordion/howto-accordion.js:675
FunctionC
(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