File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,18 @@ private AttributeItem[] GetAttributes() =>
251251 /// <returns></returns>
252252 private EventItem [ ] GetEvents ( ) =>
253253 [
254+ new ( )
255+ {
256+ Name = "OnClick" ,
257+ Description = Localizer [ "EventDesc1" ] ,
258+ Type = "EventCallback<MouseEventArgs>"
259+ } ,
260+ new ( )
261+ {
262+ Name = "OnClickWithoutRender" ,
263+ Description = Localizer [ "EventDesc2" ] ,
264+ Type = "Func<Task>"
265+ } ,
254266 new EventItem ( )
255267 {
256268 Name = "OnSelectedItemChanged" ,
Original file line number Diff line number Diff line change 17931793 "AttributeButtonTemplate": "The template of button",
17941794 "AttributeItemTemplate": "The template of item",
17951795 "AttributeItemsTemplate": "The template of items",
1796+ "EventDesc1": "This event is triggered when the button is clicked",
1797+ "EventDesc2": "This event is triggered when the button is clicked and the current component is not refreshed for performance improvement",
17961798 "EventOnSelectedItemChanged": "Triggered when the value of the drop-down box changes",
17971799 "FixedButtonText": "The text of fixed button",
17981800 "Item1": "Melbourne",
Original file line number Diff line number Diff line change 17931793 "AttributeButtonTemplate" : " 按钮模板" ,
17941794 "AttributeItemTemplate" : " 菜单项模板" ,
17951795 "AttributeItemsTemplate" : " 下拉菜单模板" ,
1796+ "EventDesc1" : " 点击按钮时触发此事件" ,
1797+ "EventDesc2" : " 点击按钮时触发此事件并且不刷新当前组件,用于提高性能时使用" ,
17961798 "EventOnSelectedItemChanged" : " 下拉框值发生改变时触发" ,
17971799 "FixedButtonText" : " 固定按钮显示文字" ,
17981800 "Item1" : " 北京" ,
You can’t perform that action at this time.
0 commit comments