[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
WordPress dependencies
File Size: | 775 lines (26 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
defaults(state = {}, action) X-Ref |
Reducer returning the defaults for user preferences. This is kept intentionally separate from the preferences themselves so that defaults are not persisted. param: {Object} state Current state. param: {Object} action Dispatched action. return: {Object} Updated state. |
withPersistenceLayer(reducer) X-Ref |
Higher order reducer that does the following: - Merges any data from the persistence layer into the state when the `SET_PERSISTENCE_LAYER` action is received. - Passes any preferences changes to the persistence layer. param: {Function} reducer The preferences reducer. return: {Function} The enhanced reducer. |
toggle(scope, name) X-Ref |
Returns an action object used in signalling that a preference should be toggled. param: {string} scope The preference scope (e.g. core/edit-post). param: {string} name The preference name. |
set(scope, name, value) X-Ref |
Returns an action object used in signalling that a preference should be set to a value param: {string} scope The preference scope (e.g. core/edit-post). param: {string} name The preference name. param: {*} value The value to set. return: {Object} Action object. |
setDefaults(scope, defaults) X-Ref |
Returns an action object used in signalling that preference defaults should be set. param: {string} scope The preference scope (e.g. core/edit-post). param: {Object<string, *>} defaults A key/value map of preference names to values. return: {Object} Action object. |
PreferenceToggleMenuItem({scope,name,label,info,messageActivated,messageDeactivated,shortcut,handleToggling = true,onToggle = () X-Ref |
Internal dependencies |
BaseOption({help,label,isChecked,onChange,children}) X-Ref |
No description |
PreferenceToggleControl(props) X-Ref |
No description |
PreferencesModal({closeModal,children}) X-Ref |
No description |
Icon({icon,size = 24,...props}, ref) X-Ref |
Return an SVG icon. param: {IconProps} props icon is the SVG component to render param: {import('react').ForwardedRef<HTMLElement>} ref The forwarded ref to the SVG element. return: {JSX.Element} Icon component |
PreferencesModalTabs({sections}) X-Ref |
No description |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |