Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys,
Could be that i'm asking a stupid question, but i can't wrap my head around the following problem:
I want to have a decimal property editor, but the value must be stored without de decimal separator
So for example:
On create: when someone types 9,00 or 9.00 the model.value should be 900.Also when you edit it fetches 900 from the database but it should show 9,00.
I've been struggling with filters and masks, but my knowledge of Angular and Umbraco 7 property editors is lacking to put it as an understatement:)
Does someone have a working example or link to a tutorial?
Thanks in advance!
Garret
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
mask or filter model.value as decimal
Hi guys,
Could be that i'm asking a stupid question, but i can't wrap my head around the following problem:
I want to have a decimal property editor, but the value must be stored without de decimal separator
So for example:
On create: when someone types 9,00 or 9.00 the model.value should be 900.
Also when you edit it fetches 900 from the database but it should show 9,00.
I've been struggling with filters and masks, but my knowledge of Angular and Umbraco 7 property editors is lacking to put it as an understatement:)
Does someone have a working example or link to a tutorial?
Thanks in advance!
Garret
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.