1
+ package antd
2
+
3
+ import slinky .core .ExternalComponent
4
+ import slinky .core .annotations .react
5
+ import slinky .core .facade .ReactElement
6
+
7
+ import scala .scalajs .js
8
+ import scala .scalajs .js .UndefOr
9
+ import scala .scalajs .js .annotation .JSImport
10
+ import scala .scalajs .js .|
11
+
12
+ @ JSImport (" antd" , JSImport .Default )
13
+ @ js.native
14
+ object AntMenu extends js.Object {
15
+ val Menu : AntMenuObject = js.native
16
+ }
17
+
18
+ @ js.native
19
+ trait AntMenuObject extends js.Object {
20
+ val Item : js.Object = js.native
21
+ val SubMenu : js.Object = js.native
22
+ val ItemGroup : js.Object = js.native
23
+ val Divider : js.Object = js.native
24
+ }
25
+
26
+ @ react object Menu extends ExternalComponent {
27
+ case class Props (defaultOpenKeys : UndefOr [js.Array [String ]] = js.undefined,
28
+ defaultSelectedKeys : UndefOr [js.Array [String ]] = js.undefined,
29
+ forceSubMenuRender : Boolean = false ,
30
+ inlineCollapsed : UndefOr [Boolean ] = js.undefined,
31
+ inlineIndent : Int = 24 ,
32
+ mode : String = " vertical" ,
33
+ multiple : Boolean = false ,
34
+ openKeys : UndefOr [js.Array [String ]] = js.undefined,
35
+ selectable : Boolean = true ,
36
+ selectedKeys : UndefOr [js.Array [String ]] = js.undefined,
37
+ style : UndefOr [js.Object ] = js.undefined,
38
+ subMenuCloseDelay : Double = 0.1 ,
39
+ subMenuOpenDelay : Double = 0.0 ,
40
+ theme : String = " light" ,
41
+ onClick : UndefOr [js.Function3 [js.Object , js.Object , js.Object , js.Any ]] = js.undefined,
42
+ onDeselect : UndefOr [js.Function3 [js.Object , js.Object , js.Object , js.Any ]] = js.undefined,
43
+ onOpenChange : UndefOr [js.Function1 [js.Array [String ], js.Any ]] = js.undefined,
44
+ onSelect : UndefOr [js.Function3 [js.Object , js.Object , js.Object , js.Any ]] = js.undefined)
45
+
46
+ override val component = AntMenu .Menu
47
+ }
48
+
49
+ @ react object MenuItem extends ExternalComponent {
50
+ case class Props (disabled : Boolean = false ,
51
+ key : UndefOr [String ] = js.undefined,
52
+ title : UndefOr [String ] = js.undefined)
53
+
54
+ override val component = AntMenu .Menu .Item
55
+ }
56
+
57
+ @ react object SubMenu extends ExternalComponent {
58
+ case class Props (disabled : Boolean = false ,
59
+ key : UndefOr [String ] = js.undefined,
60
+ title : UndefOr [String ] = js.undefined,
61
+ onTitleClick : UndefOr [js.Function2 [js.Object , js.Object , js.Any ]] = js.undefined)
62
+
63
+ override val component = AntMenu .Menu .SubMenu
64
+ }
65
+
66
+ @ react object ItemGroup extends ExternalComponent {
67
+ case class Props (title : UndefOr [String | ReactElement ] = js.undefined)
68
+
69
+ override val component = AntMenu .Menu .ItemGroup
70
+ }
71
+
72
+ @ react object Divider extends ExternalComponent {
73
+ type Props = Unit
74
+
75
+ override val component = AntMenu .Menu .Divider
76
+ }
0 commit comments