-
Notifications
You must be signed in to change notification settings - Fork 68
JsWidgets: add simple tab box #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: releases/25.2
Are you sure you want to change the base?
JsWidgets: add simple tab box #342
Conversation
0b95829 to
b79db23
Compare
| } | ||
| ] | ||
| }, | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pages are ordered alphabetically and Simple... comes after Sequence....
| closableField: CheckBoxField; | ||
| statusField: SmartField<StatusSeverity>; | ||
|
|
||
| protected _tabCounter: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to separate the declaration and the initialization. As there is no difference in e.g. the simpleTabBox being undefined or null, the majority of the constructor can be removed.
The _tabCounter initialization can be replaced by
| protected _tabCounter: number; | |
| protected _tabCounter = 0; |
| } | ||
|
|
||
| abort() { | ||
| MessageBoxes.createOk(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you not remove the view?
| import {ConfigurationBox, EventsTab, EventsTabWidgetMap, IconIdLookupCall, StatusSeverityLookupCall, WidgetActionsBox, WidgetActionsBoxWidgetMap} from '../index'; | ||
|
|
||
| export default (): FormModel => ({ | ||
| id: 'jswidgets.SimpleTabBoxForm', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary
|
|
||
| export default (): FormModel => ({ | ||
| id: 'jswidgets.SimpleTabBoxForm', | ||
| displayHint: 'view', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary
|
|
||
| this.statusField = this.widget('StatusField'); | ||
| this.statusField.on('propertyChange:value', this._onStatusFieldValueChange.bind(this)); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialize action and event tab
this.widget('WidgetActionsBox').setField(this.simpleTabBox);
this.widget('EventsTab').setField(this.simpleTabBox);
No description provided.