native-document 1.0.158 → 1.0.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3435,6 +3435,10 @@ var NativeComponents = (function (exports) {
3435
3435
  return props;
3436
3436
  };
3437
3437
 
3438
+ BaseComponent.prototype.props = function(props) {
3439
+ this.$description.props = props;
3440
+ return this;
3441
+ };
3438
3442
 
3439
3443
  BaseComponent.prototype.style = function(style) {
3440
3444
  const props = this.getEditableProps();
@@ -12203,7 +12207,7 @@ var NativeComponents = (function (exports) {
12203
12207
  * @param {?Function=} customWrapper
12204
12208
  * @returns {Function}
12205
12209
  */
12206
- function HtmlElementWrapper(name, customWrapper = null) {
12210
+ function HtmlElementWrapper(name, customWrapper = null) {
12207
12211
  if(name) {
12208
12212
  if(customWrapper) {
12209
12213
  let node = null;
@@ -13796,9 +13800,14 @@ var NativeComponents = (function (exports) {
13796
13800
  return new SimpleTable(props);
13797
13801
  };
13798
13802
 
13799
- SimpleTable.prototype.column = function(key, title, callback) {
13803
+ SimpleTable.prototype.column = function(key, title, props, callback) {
13804
+ if(typeof props === 'function') {
13805
+ callback = props;
13806
+ props = {};
13807
+ }
13800
13808
  const column = new Column(key);
13801
13809
  column.title(title);
13810
+ column.props(props);
13802
13811
  callback && callback(column);
13803
13812
  this.$description.columns.push(column);
13804
13813
  this.$description.header.push(column);
@@ -14014,9 +14023,15 @@ var NativeComponents = (function (exports) {
14014
14023
  // COLONNES
14015
14024
  // ---------------------------------------------
14016
14025
 
14017
- DataTable.prototype.column = function(key, title, callback) {
14026
+
14027
+ DataTable.prototype.column = function(key, title, props, callback) {
14028
+ if(typeof props === 'function') {
14029
+ callback = props;
14030
+ props = {};
14031
+ }
14018
14032
  const column = new Column(key);
14019
14033
  column.title(title);
14034
+ column.props(props);
14020
14035
  callback && callback(column);
14021
14036
  this.$description.columns.push(column);
14022
14037
  this.$description.header.push(column);
@@ -4291,7 +4291,7 @@ var NativeDocument = (function (exports) {
4291
4291
  * @param {?Function=} customWrapper
4292
4292
  * @returns {Function}
4293
4293
  */
4294
- function HtmlElementWrapper(name, customWrapper = null) {
4294
+ function HtmlElementWrapper(name, customWrapper = null) {
4295
4295
  if(name) {
4296
4296
  if(customWrapper) {
4297
4297
  let node = null;
@@ -6112,7 +6112,7 @@ var NativeDocument = (function (exports) {
6112
6112
  * multipartFormData: () => HTMLFormElement,
6113
6113
  * }}
6114
6114
  */
6115
- const Form = HtmlElementWrapper('form', function(el) {
6115
+ const Form = HtmlElementWrapper('form', (el) => {
6116
6116
 
6117
6117
  el.submit = function(action) {
6118
6118
  if(typeof action === 'function') {