Skip to content

Commit

Permalink
Merge pull request #42 from YouweGit/feature/filteringAndBatchEdit
Browse files Browse the repository at this point in the history
Feature/filtering and batch edit
  • Loading branch information
kjkooistra-youwe authored Mar 16, 2020
2 parents acd1f5b + 192909a commit 15daad8
Show file tree
Hide file tree
Showing 4 changed files with 334 additions and 121 deletions.
44 changes: 41 additions & 3 deletions Model/DataObject/ClassDefinition/Data/ObjectBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,22 @@ class ObjectBridge extends ClassDefinition\Data\Relations\AbstractRelations impl
/** @var string */
public $bridgeVisibleFieldDefinitions;

/** @var bool */
/** @var bool */
public $autoResize;

/** @var bool */
/** @var bool */
public $newLineSplit;

/** @var int */
public $maxWidthResize;

/** @var bool */
/** @var bool */
public $enableFiltering;

/** @var bool */
public $enableBatchEdit;

/** @var bool */
public $allowCreate;

/** @var bool */
Expand Down Expand Up @@ -1352,6 +1358,38 @@ public function setNewLineSplit($newLineSplit)
/**
* @return bool
*/
public function getEnableFiltering()
{
return $this->enableFiltering;
}

/**
* @param bool $enableFiltering
*/
public function setEnableFiltering($enableFiltering)
{
$this->enableFiltering = $enableFiltering;
}

/**
* @return bool
*/
public function getEnableBatchEdit()
{
return $this->enableBatchEdit;
}

/**
* @param bool $enableBatchEdit
*/
public function setEnableBatchEdit($enableBatchEdit)
{
$this->enableBatchEdit = $enableBatchEdit;
}

/**
* @return boolean
*/
public function getAllowCreate()
{
return $this->allowCreate;
Expand Down
12 changes: 12 additions & 0 deletions Resources/public/js/pimcore/objects/classes/data/objectBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ pimcore.object.classes.data.objectBridge = Class.create(pimcore.object.classes.d
fieldLabel: t("max_width_resize"),
name: 'maxWidthResize',
value: this.datax.maxWidthResize
}, {
xtype: "checkbox",
fieldLabel: t("enable_filtering"),
name: "enableFiltering",
checked: this.datax.enableFiltering
}, {
xtype: "checkbox",
fieldLabel: t("enable_batch_edit"),
name: "enableBatchEdit",
checked: this.datax.enableBatchEdit
}, {
xtype: "checkbox",
fieldLabel: t("allow_create"),
Expand Down Expand Up @@ -683,6 +693,8 @@ pimcore.object.classes.data.objectBridge = Class.create(pimcore.object.classes.d
autoResize: source.datax.autoResize,
maxWidthResize: source.datax.maxWidthResize,
newLineSplit: source.datax.newLineSplit,
enableFiltering: source.datax.enableFiltering,
enableBatchEdit: source.datax.enableBatchEdit,
sourceAllowedClassName: source.datax.sourceAllowedClassName,
sourceVisibleFields: source.datax.sourceVisibleFields,
sourceHiddenFields: source.datax.sourceHiddenFields,
Expand Down
Loading

0 comments on commit 15daad8

Please sign in to comment.