Skip to content

Conversation

@torstentrompler
Copy link
Member

No description provided.

@fschinkel fschinkel force-pushed the features/ttr/25.2/simple-tab-box-with-vertical-tabs branch from 0b95829 to b79db23 Compare November 10, 2025 08:34
}
]
},
{
Copy link
Member

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;
Copy link
Member

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

Suggested change
protected _tabCounter: number;
protected _tabCounter = 0;

}

abort() {
MessageBoxes.createOk(this)
Copy link
Member

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',
Copy link
Member

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',
Copy link
Member

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));
}
Copy link
Member

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants