@material/toolbar
- Version 2.3.0
- Published
- 678 kB
- 7 dependencies
- MIT license
Install
npm i @material/toolbar
yarn add @material/toolbar
pnpm add @material/toolbar
Overview
The Material Components for the web toolbar component
Index
Namespaces
Namespaces
namespace @material/toolbar
module '@material/toolbar' {}
variable cssClasses
const cssClasses: { FIXED: string; FIXED_AT_LAST_ROW: string; FIXED_LASTROW: string; FLEXIBLE_DEFAULT_BEHAVIOR: string; FLEXIBLE_MAX: string; FLEXIBLE_MIN: string; TOOLBAR_ROW_FLEXIBLE: string;};
Copyright 2017 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
variable numbers
const numbers: { MAX_TITLE_SIZE: number; MIN_TITLE_SIZE: number; TOOLBAR_MOBILE_BREAKPOINT: number; TOOLBAR_ROW_HEIGHT: number; TOOLBAR_ROW_MOBILE_HEIGHT: number;};
variable strings
const strings: { CHANGE_EVENT: string; FIRST_ROW_SELECTOR: string; ICON_SELECTOR: string; TITLE_SELECTOR: string;};
class MDCToolbar
class MDCToolbar extends MDCComponent<MDCToolbarFoundation> {}
property fixedAdjustElement
fixedAdjustElement: HTMLElement;
property root_
protected root_: HTMLElement;
method attachTo
static attachTo: (root: Element) => MDCToolbar;
method destroy
destroy: () => void;
method getDefaultFoundation
getDefaultFoundation: () => MDCToolbarFoundation;
method initialize
initialize: () => void;
class MDCToolbarFoundation
class MDCToolbarFoundation extends MDCFoundation<MDCToolbarAdapter> {}
constructor
constructor(adapter?: Partial<MDCToolbarAdapter>);
property cssClasses
static readonly cssClasses: { FIXED: string; FIXED_AT_LAST_ROW: string; FIXED_LASTROW: string; FLEXIBLE_DEFAULT_BEHAVIOR: string; FLEXIBLE_MAX: string; FLEXIBLE_MIN: string; TOOLBAR_ROW_FLEXIBLE: string;};
property defaultAdapter
static readonly defaultAdapter: MDCToolbarAdapter;
property numbers
static readonly numbers: { MAX_TITLE_SIZE: number; MIN_TITLE_SIZE: number; TOOLBAR_MOBILE_BREAKPOINT: number; TOOLBAR_ROW_HEIGHT: number; TOOLBAR_ROW_MOBILE_HEIGHT: number;};
property strings
static readonly strings: { CHANGE_EVENT: string; FIRST_ROW_SELECTOR: string; ICON_SELECTOR: string; TITLE_SELECTOR: string;};
method destroy
destroy: () => void;
method init
init: () => void;
method updateAdjustElementStyles
updateAdjustElementStyles: () => void;
interface MDCToolbarAdapter
interface MDCToolbarAdapter {}
Defines the shape of the adapter expected by the foundation. Implement this adapter for your framework of choice to delegate updates to the component in your framework of choice. See architecture documentation for more details. https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
property addClass
addClass: (className: string) => void;
property deregisterResizeHandler
deregisterResizeHandler: (handler: SpecificEventListener<'resize'>) => void;
property deregisterScrollHandler
deregisterScrollHandler: (handler: SpecificEventListener<'scroll'>) => void;
property getFirstRowElementOffsetHeight
getFirstRowElementOffsetHeight: () => number;
property getOffsetHeight
getOffsetHeight: () => number;
property getViewportScrollY
getViewportScrollY: () => number;
property getViewportWidth
getViewportWidth: () => number;
property hasClass
hasClass: (className: string) => boolean;
property notifyChange
notifyChange: (evtData: MDCToolbarEventDetail) => void;
property registerResizeHandler
registerResizeHandler: (handler: SpecificEventListener<'resize'>) => void;
property registerScrollHandler
registerScrollHandler: (handler: SpecificEventListener<'scroll'>) => void;
property removeClass
removeClass: (className: string) => void;
property setStyle
setStyle: (property: string, value: string) => void;
property setStyleForFixedAdjustElement
setStyleForFixedAdjustElement: (property: string, value: string) => void;
property setStyleForFlexibleRowElement
setStyleForFlexibleRowElement: (property: string, value: string) => void;
property setStyleForTitleElement
setStyleForTitleElement: (property: string, value: string) => void;
interface MDCToolbarEvent
interface MDCToolbarEvent extends Event {}
property detail
readonly detail: MDCToolbarEventDetail;
interface MDCToolbarEventDetail
interface MDCToolbarEventDetail {}
Copyright 2019 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
property flexibleExpansionRatio
flexibleExpansionRatio: number;
namespace @material/toolbar/adapter
module '@material/toolbar/adapter' {}
interface MDCToolbarAdapter
interface MDCToolbarAdapter {}
Defines the shape of the adapter expected by the foundation. Implement this adapter for your framework of choice to delegate updates to the component in your framework of choice. See architecture documentation for more details. https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
property addClass
addClass: (className: string) => void;
property deregisterResizeHandler
deregisterResizeHandler: (handler: SpecificEventListener<'resize'>) => void;
property deregisterScrollHandler
deregisterScrollHandler: (handler: SpecificEventListener<'scroll'>) => void;
property getFirstRowElementOffsetHeight
getFirstRowElementOffsetHeight: () => number;
property getOffsetHeight
getOffsetHeight: () => number;
property getViewportScrollY
getViewportScrollY: () => number;
property getViewportWidth
getViewportWidth: () => number;
property hasClass
hasClass: (className: string) => boolean;
property notifyChange
notifyChange: (evtData: MDCToolbarEventDetail) => void;
property registerResizeHandler
registerResizeHandler: (handler: SpecificEventListener<'resize'>) => void;
property registerScrollHandler
registerScrollHandler: (handler: SpecificEventListener<'scroll'>) => void;
property removeClass
removeClass: (className: string) => void;
property setStyle
setStyle: (property: string, value: string) => void;
property setStyleForFixedAdjustElement
setStyleForFixedAdjustElement: (property: string, value: string) => void;
property setStyleForFlexibleRowElement
setStyleForFlexibleRowElement: (property: string, value: string) => void;
property setStyleForTitleElement
setStyleForTitleElement: (property: string, value: string) => void;
namespace @material/toolbar/component
module '@material/toolbar/component' {}
class MDCToolbar
class MDCToolbar extends MDCComponent<MDCToolbarFoundation> {}
property fixedAdjustElement
fixedAdjustElement: HTMLElement;
property root_
protected root_: HTMLElement;
method attachTo
static attachTo: (root: Element) => MDCToolbar;
method destroy
destroy: () => void;
method getDefaultFoundation
getDefaultFoundation: () => MDCToolbarFoundation;
method initialize
initialize: () => void;
namespace @material/toolbar/constants
module '@material/toolbar/constants' {}
variable cssClasses
const cssClasses: { FIXED: string; FIXED_AT_LAST_ROW: string; FIXED_LASTROW: string; FLEXIBLE_DEFAULT_BEHAVIOR: string; FLEXIBLE_MAX: string; FLEXIBLE_MIN: string; TOOLBAR_ROW_FLEXIBLE: string;};
Copyright 2017 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
variable numbers
const numbers: { MAX_TITLE_SIZE: number; MIN_TITLE_SIZE: number; TOOLBAR_MOBILE_BREAKPOINT: number; TOOLBAR_ROW_HEIGHT: number; TOOLBAR_ROW_MOBILE_HEIGHT: number;};
variable strings
const strings: { CHANGE_EVENT: string; FIRST_ROW_SELECTOR: string; ICON_SELECTOR: string; TITLE_SELECTOR: string;};
namespace @material/toolbar/foundation
module '@material/toolbar/foundation' {}
class MDCToolbarFoundation
class MDCToolbarFoundation extends MDCFoundation<MDCToolbarAdapter> {}
constructor
constructor(adapter?: Partial<MDCToolbarAdapter>);
property cssClasses
static readonly cssClasses: { FIXED: string; FIXED_AT_LAST_ROW: string; FIXED_LASTROW: string; FLEXIBLE_DEFAULT_BEHAVIOR: string; FLEXIBLE_MAX: string; FLEXIBLE_MIN: string; TOOLBAR_ROW_FLEXIBLE: string;};
property defaultAdapter
static readonly defaultAdapter: MDCToolbarAdapter;
property numbers
static readonly numbers: { MAX_TITLE_SIZE: number; MIN_TITLE_SIZE: number; TOOLBAR_MOBILE_BREAKPOINT: number; TOOLBAR_ROW_HEIGHT: number; TOOLBAR_ROW_MOBILE_HEIGHT: number;};
property strings
static readonly strings: { CHANGE_EVENT: string; FIRST_ROW_SELECTOR: string; ICON_SELECTOR: string; TITLE_SELECTOR: string;};
method destroy
destroy: () => void;
method init
init: () => void;
method updateAdjustElementStyles
updateAdjustElementStyles: () => void;
namespace @material/toolbar/types
module '@material/toolbar/types' {}
interface MDCToolbarEvent
interface MDCToolbarEvent extends Event {}
property detail
readonly detail: MDCToolbarEventDetail;
interface MDCToolbarEventDetail
interface MDCToolbarEventDetail {}
Copyright 2019 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
property flexibleExpansionRatio
flexibleExpansionRatio: number;
Package Files (1)
Dependencies (7)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@material/toolbar
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@material/toolbar)
- HTML<a href="https://www.jsdocs.io/package/@material/toolbar"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2580 ms. - Missing or incorrect documentation? Open an issue for this package.