forked from tforsberg/Frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTab.cs
78 lines (72 loc) · 2.98 KB
/
Tab.cs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using Bridge.jQuery2;
namespace Bridge.Bootstrap3
{
[External]
public static partial class Bootstrap
{
/// <summary>
/// Does something with a tab. Actully, the only operation is supported - 'show'. It activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.
/// </summary>
/// <param name="instance">The jQuery object with a tab</param>
/// <param name="operation">The operation to be done. The only one is actually supported - "show".</param>
/// <returns>The jQuery object</returns>
[Template("{0}.tab({1})")]
public static jQuery Tab(this jQuery instance, string operation)
{
return null;
}
/// <summary>
/// Does something with a tab. Actully, the only operation is supported - 'show'. It activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.
/// </summary>
/// <param name="instance">The jQuery object with a tab</param>
/// <param name="operation">The operation to be done. The only one is actually supported - "show".</param>
/// <returns>The jQuery object</returns>
[Template("{0}.tab({1})")]
public static jQuery Tab(this jQuery instance, TabOperation operation)
{
return null;
}
/// <summary>
/// Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.
/// </summary>
/// <param name="instance">The jQuery object with a tab</param>
/// <returns>The jQuery object</returns>
[Template("{0}.tab('show')")]
public static jQuery TabShow(this jQuery instance)
{
return null;
}
}
/// <summary>
/// Possible operations on a tab
/// </summary>
[External]
[Enum(Emit.StringNameLowerCase)]
[Name("String")]
public enum TabOperation
{
/// <summary>
/// Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.
/// </summary>
Show
}
/// <summary>
/// Tab events
/// </summary>
[External]
[Enum(Emit.StringNameLowerCase)]
[Name("String")]
public enum TabEvent
{
/// <summary>
/// This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
/// </summary>
[Name("show.bs.tab")]
Show,
/// <summary>
/// This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
/// </summary>
[Name("shown.bs.tab")]
Shown
}
}