Comparing version 1.1.0-beta to 1.1.0-beta2
@@ -180,3 +180,3 @@ "use strict"; | ||
try { | ||
let model = require('../../../../orm-model-config.js'); // require('../pkgtest/orm-model-config.js'); | ||
let model = require('../pkgtest/orm-model-config.js'); //require('../../../../orm-model-config.js'); | ||
return model; | ||
@@ -183,0 +183,0 @@ } |
@@ -113,3 +113,3 @@ import { ActiveDataProvider } from '..'; | ||
*/ | ||
getAttributeLabels: () => { | ||
getAttributeLabels(): { | ||
[key: string]: string; | ||
@@ -116,0 +116,0 @@ }; |
@@ -113,18 +113,2 @@ "use strict"; | ||
/** | ||
* Attribute labels are mainly used for display purpose. For example, given an attribute | ||
* `firstName`, we can declare a label `First Name` which is more user-friendly and can | ||
* be displayed to end users. | ||
* Eg:- | ||
* ```js | ||
* export class Event extends Model { | ||
* getAttributeLabels() { | ||
* return { | ||
* firstName: 'First Name', | ||
* ... | ||
* } | ||
* }; | ||
* ``` | ||
*/ | ||
this.getAttributeLabels = () => ({}); | ||
/** | ||
* Attribute hints are mainly used for display purpose. For example, given an attribute | ||
@@ -148,2 +132,21 @@ * `isPublic`, we can declare a hint `Whether the post should be visible for not logged in users`, | ||
/** | ||
* Attribute labels are mainly used for display purpose. For example, given an attribute | ||
* `firstName`, we can declare a label `First Name` which is more user-friendly and can | ||
* be displayed to end users. | ||
* Eg:- | ||
* ```js | ||
* export class Event extends Model { | ||
* getAttributeLabels() { | ||
* return { | ||
* firstName: 'First Name', | ||
* ... | ||
* } | ||
* }; | ||
* ``` | ||
*/ | ||
getAttributeLabels() { | ||
return {}; | ||
} | ||
; | ||
/** | ||
* Returns the text label for the specified attribute. | ||
@@ -150,0 +153,0 @@ * If the attribute looks like `relatedModel.attribute`, then the attribute will be received from the related model. |
{ | ||
"name": "pwoli", | ||
"version": "1.1.0-beta", | ||
"version": "1.1.0-beta2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1464047
90
37117