We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0201593 commit aa0f84cCopy full SHA for aa0f84c
Datatable/OptionsTrait.php
@@ -76,6 +76,27 @@ public function set(array $options)
76
return $this;
77
}
78
79
+ /**
80
+ * Add options. Dont rewrite existing.
81
+ *
82
+ * @param array $options
83
84
+ * @return $this
85
+ */
86
+ public function add(array $options)
87
+ {
88
+ $resolver = new OptionsResolver();
89
+ $this->configureOptions($resolver);
90
+
91
+ $add = $resolver->resolve($options);
92
+ $add = array_intersect_key($add, $options);
93
94
+ $this->options = array_merge($this->options, $add);
95
+ $this->callingSettersWithOptions($add);
96
97
+ return $this;
98
+ }
99
100
/**
101
* Option to JSON.
102
*/
0 commit comments