-
Notifications
You must be signed in to change notification settings - Fork 153
/
breadcrumb-model.d.ts
170 lines (146 loc) · 4.75 KB
/
breadcrumb-model.d.ts
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove, initializeCSPTemplate, isNullOrUndefined } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class BreadcrumbItem
*/
export interface BreadcrumbItemModel {
/**
* Specifies the text content of the Breadcrumb item.
*
* @default ''
*/
text?: string;
/**
* Specifies the id of the Breadcrumb item.
*
* @default ''
*/
id?: string;
/**
* Specifies the Url of the Breadcrumb item that will be activated when clicked.
*
* @default ''
*/
url?: string;
/**
* Defines a class/multiple classes separated by a space for the item that is used to include an icon.
*
* @default null
*/
iconCss?: string;
/**
* Enable or disable the breadcrumb item, when set to true, the breadcrumb item will be disabled.
*
* @default false
*/
disabled?: boolean;
}
/**
* Interface for a class Breadcrumb
*/
export interface BreadcrumbModel extends ComponentModel{
/**
* Defines the Url based on which the Breadcrumb items are generated.
*
* @default ''
*/
url?: string;
/**
* Defines the list of Breadcrumb items.
*
* @default []
*/
items?: BreadcrumbItemModel[];
/**
* Specifies the Url of the active Breadcrumb item.
*
* @default ''
*/
activeItem?: string;
/**
* Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
*
* @default -1
* @aspType int
*/
maxItems?: number;
/**
* Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
* - Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
* - Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
* - Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
* - Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
* - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
* - None: Shows all the items on a single line.
*
* @isenumeration true
* @default BreadcrumbOverflowMode.Menu
* @asptype BreadcrumbOverflowMode
*/
overflowMode?: string | BreadcrumbOverflowMode;
/**
* Defines class/multiple classes separated by a space in the Breadcrumb element.
*
* @default ''
*/
cssClass?: string;
/**
* Specifies the template for Breadcrumb item.
*
* @default null
* @aspType string
*/
itemTemplate?: string | Function;
/**
* Specifies the separator template for Breadcrumb.
*
* @default '/'
* @aspType string
*/
separatorTemplate?: string | Function;
/**
* Enable or disable the item's navigation, when set to false, each item navigation will be prevented.
*
* @default true
*/
enableNavigation?: boolean;
/**
* Enable or disable the active item navigation, when set to true, active item will be navigable.
*
* @default false
*/
enableActiveItemNavigation?: boolean;
/**
* Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
*
* @default false
*/
disabled?: boolean;
/**
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
*
* @default ''
* @private
* @aspIgnore
*/
locale?: string;
/**
* Triggers while rendering each breadcrumb item.
*
* @event beforeItemRender
*/
beforeItemRender?: EmitType<BreadcrumbBeforeItemRenderEventArgs>;
/**
* Triggers while clicking the breadcrumb item.
*
* @event itemClick
*/
itemClick?: EmitType<BreadcrumbClickEventArgs>;
/**
* Triggers once the component rendering is completed.
*
* @event created
*/
created?: EmitType<Event>;
}