feature: sortable rows

This commit is contained in:
Ryan Chandler
2021-03-12 11:23:39 +00:00
parent 9caff4403c
commit b69b72f560
3 changed files with 29 additions and 22 deletions
+4 -4
View File
@@ -14,13 +14,13 @@ class KeyValue extends Field
public $deleteButtonLabel = 'forms::fields.keyValue.deleteButtonLabel';
public $dragButtonLabel = 'forms::fields.keyValue.dragButtonLabel';
public $isSortable = false;
public $keyLabel = 'forms::fields.keyValue.keyLabel';
public $keyPlaceholder = 'forms::fields.keyValue.keyPlaceholder';
public $isSortable = false;
public $sortButtonLabel = 'forms::fields.keyValue.sortButtonLabel';
public $valueLabel = 'forms::fields.keyValue.valueLabel';
@@ -45,9 +45,9 @@ class KeyValue extends Field
return $this;
}
public function dragButtonLabel($label)
public function sortButtonLabel($label)
{
$this->dragButtonLabel = $label;
$this->sortButtonLabel = $label;
return $this;
}