Comments (4)
https://github.com/canjs/canjs/blob/master/map/define/doc/examples/make-model-year.html#L110
from bitballs.
{($value})
="convertToString(~weight)"
from bitballs.
Starting on this.
Problem:
An empty string (or falsey value) is converted to 0's (and produces a "0" in the field instead of the desired empty string) when using {($value)}
and the define plugin with {type: 'number'}
.
Possible approaches:
- Custom type as linked to in the comment above
- A conversion helper as shown above
- Updating the built-in
number
type to handle this automatically - Updating the
{($value)}
helper to handle this automatically
Between 3 & 4, I think 4 is more appropriate since it's a display issue. For now, to close this issue for bitballs I'll stick with 1.
from bitballs.
This is no longer working it seems. And it can be made to work the right way with the recent changes to CanJS.
Please make a util
helper. It should look like what's outlined in: canjs/canjs#2299
from bitballs.
Related Issues (20)
- Fully upgrade to canjs 5 and steal 2.0 HOT 3
- KefirJS Weirdness HOT 1
- Stats are linkable
- Player Stats Page should have stats
- Incorrect copy-pasted comment
- Variable name continuity HOT 8
- NHT: Techdebt: onboarding docs/work on new versions of node HOT 6
- NHT: Link to an individual stat HOT 4
- NHT: Documentation: Outline new user creation + email authentication for local development
- NHT: Add stats (with links) to the Player page
- NHT: Users shall be able to create βstats."
- NHT: Send an email to the uber-admin when a new User is created.
- NHT: Improve assignment of a player to a team. HOT 1
- NHT: Keyboard shortcuts to add stats HOT 2
- NHT: Edit stats, games, tournaments rather than just delete and remake
- NHT: Improve player to team assignment flow HOT 2
- NHT: Player β Team assignment: Player typeahead
- NHT: Player β Team assignment: Inline create player
- NHT: Player β Team assignment: Display user ranking when adding players to team
- NHT: Improve (add stat) modal window HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitballs.