-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Description
I am not what to call the helper class that contains the different CSS units like px and rem. I have now called it length, implemented like this:
[<Erase>]
type length =
static member inline px(value: int) : ICssUnit = unbox ((unbox<string>value) + "px")
static member inline px(value: double) : ICssUnit = unbox ((unbox<string>value) + "px")
static member inline cm(value: int) : ICssUnit = unbox ((unbox<string>value) + "cm")
static member inline cm(value: double) : ICssUnit = unbox ((unbox<string>value) + "cm")
/// etc. etc.and you can use it like this:
style.margin (length.px 20)but I am not sure if length is a good name for it, what do you think @MangelMaxime?
Metadata
Metadata
Assignees
Labels
No labels