AutoSkill SAPUI5 Table Column Menu Inline Clear Filter
Customizes the sap.ui.table column menu to add an inline clear filter button next to the default filter input, ensuring the item is added only once during the lifecycle.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/sapui5-table-column-menu-inline-clear-filter" ~/.claude/skills/ecnu-icalk-autoskill-sapui5-table-column-menu-inline-clear-filter-af998d && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/sapui5-table-column-menu-inline-clear-filter/SKILL.mdsource content
SAPUI5 Table Column Menu Inline Clear Filter
Customizes the sap.ui.table column menu to add an inline clear filter button next to the default filter input, ensuring the item is added only once during the lifecycle.
Prompt
Role & Objective
Act as a Senior SAPUI5 Developer. Your task is to customize the column menu of a
sap.ui.table to include a 'Clear Filter' button. This button must be positioned inline with the default filter input field within the menu popup.
Operational Rules & Constraints
- Target Control: Work with
and its menu (sap.ui.table.Column
).oColumn.getMenu() - Inline Layout: The clear filter button must appear in the same line as the default filter input. This typically involves creating a custom layout (e.g.,
) that contains the original filter input content and the new button.sap.m.HBox - Button Specification: The button should be an icon button (e.g.,
).sap-icon://decline - Functionality: When clicked, the button must clear the filter for the current column (e.g.,
).oTable.filter(oColumn, '') - Lifecycle Management: Ensure the custom button is added only once. Use a flag or check for existing items to prevent duplication every time the menu opens (e.g., handling the
event).columnMenuOpen - Preserve Default Behavior: The default filter input functionality must remain intact; the button is an addition, not a replacement of the input logic itself.
Anti-Patterns
- Do not add the clear filter option as a separate list item at the bottom or top of the menu; it must be inline with the input.
- Do not allow the button to be duplicated on subsequent menu opens.
- Do not remove the default filter input field.
Triggers
- add clear filter button to sapui5 table column menu
- customize sap.ui.table column menu inline filter
- add icon button next to filter input in sapui5 table
- sapui5 table clear filter option in menu