Global

Members

(constant) Component

Convenience function that returns a component that provides the passed `value` as context.
Source:

(constant) DEFAULT_CONFIG

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) DRAG_DATA_DEFINITION_FIELD

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) PluginContext

Context for shared data, intended as a mechanism for sharing between a host application that uses `usePlugins()` and its hosted plugin modules.
Source:
In general, we expect the sidebarPanelId to correspond with the name of a plugin. Here we deal with the exceptions by mapping IDs to plugin names.
Source:

(constant) swallow

Failure to preload is a non-critical failure, so we'll use this to swallow rejected promises silently.
Source:

Methods

findField()

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

getLocalizedValue()

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

normalizeField(availableLanguageIds, field)

some fields are translated with the language of themeDisplay.getDefaultLanguageId() which is not necessarily the language of dataDefinition, so we need to normalize all fields so that they receive themeDisplay.getDefaultLanguageId()
Parameters:
Name Type Description
availableLanguageIds Array
field Object
Source:

partitionPanels()

Instead of using fake panels with an ID of `separator`, partition the panels array into an array of arrays; we'll draw a separator between each group.
Source: