protected function GridStackEnginePluginBase::attributes in GridStack 8.2
Provides both CSS grid and js-driven attributes configurable via UI.
4 calls to GridStackEnginePluginBase::attributes()
- GridStackBase::itemContentAttributes in src/
Plugin/ gridstack/ engine/ GridStackBase.php - Modifies the .box__content attributes.
- GridStackEnginePluginBase::containerAttributes in src/
GridStackEnginePluginBase.php - Returns the .gridstack container attributes.
- GridStackEnginePluginBase::modifyNestedItem in src/
GridStackEnginePluginBase.php - Modifies nested item contents and attributes.
- GridStackEnginePluginBase::nestedContainerAttributes in src/
GridStackEnginePluginBase.php - Returns the .gridstack nested container attributes.
File
- src/
GridStackEnginePluginBase.php, line 551
Class
- GridStackEnginePluginBase
- Provides base class for all gridstack layout engines.
Namespace
Drupal\gridstackCode
protected function attributes(array &$attributes, array $settings) {
// Bail out if not configurable via Layout Builder alike.
if (!empty($settings['_stylizer'])) {
$this->stylizer
->attributes($attributes, $settings);
// Provides styles per item to be aggregated at top level.
if ($styles = $this->stylizer
->styles($attributes, $settings)) {
$this
->setStyles($styles);
}
}
}