-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f7c2db
commit 2a467d3
Showing
9 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
define(function(require) { | ||
"use strict"; | ||
|
||
function getReadWidget() { | ||
return '<ma-number-column field="::field" value="::entry.values[field.name()]"></ma-float-column>'; | ||
} | ||
function getLinkWidget() { | ||
return '<a ng-click="gotoDetail()">' + getReadWidget() + '</a>'; | ||
} | ||
function getFilterWidget() { | ||
return '<ma-input-field type="number" step="any" field="::field" value="values[field.name()]"></ma-input-field>'; | ||
} | ||
function getWriteWidget() { | ||
return '<ma-input-field type="number" step="any" field="::field" value="entry.values[field.name()]"></ma-input-field>'; | ||
} | ||
return { | ||
getReadWidget: getReadWidget, | ||
getLinkWidget: getLinkWidget, | ||
getFilterWidget: getFilterWidget, | ||
getWriteWidget: getWriteWidget | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import NumberField from "./NumberField"; | ||
|
||
class FloatField extends NumberField { | ||
constructor(name) { | ||
super(name); | ||
this._type = 'float'; | ||
this._format = '0.000'; | ||
} | ||
} | ||
|
||
export default FloatField; |