-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathPadding.fs
More file actions
45 lines (41 loc) · 1.75 KB
/
Padding.fs
File metadata and controls
45 lines (41 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
namespace Plotly.NET
open DynamicObj
open System.Runtime.InteropServices
type Padding() =
inherit DynamicObj()
/// <summary>
/// Returns a new Padding object with the given styling. Set the padding of the component along each side
/// </summary>
/// <param name="B">The amount of padding (in px) along the bottom of the component</param>
/// <param name="L">The amount of padding (in px) on the left side of the component</param>
/// <param name="R">The amount of padding (in px) on the right side of the component</param>
/// <param name="T">The amount of padding (in px) along the top of the component</param>
static member init
(
?B: int,
?L: int,
?R: int,
?T: int
) =
Padding() |> Padding.style (?B = B, ?L = L, ?R = R, ?T = T)
/// <summary>
/// Returns a function that applies the given styles to a Padding object. Set the padding of the component along each side
/// </summary>
/// <param name="B">The amount of padding (in px) along the bottom of the component</param>
/// <param name="L">The amount of padding (in px) on the left side of the component</param>
/// <param name="R">The amount of padding (in px) on the right side of the component</param>
/// <param name="T">The amount of padding (in px) along the top of the component</param>
static member style
(
?B: int,
?L: int,
?R: int,
?T: int
) =
(fun (padding: Padding) ->
padding
|> DynObj.withOptionalProperty "b" B
|> DynObj.withOptionalProperty "l" L
|> DynObj.withOptionalProperty "r" R
|> DynObj.withOptionalProperty "t" T
)