Skip to content

menu: стилизация, сторисы, обёртки#34

Open
khaliulin wants to merge 5 commits intofeature/styles-debugfrom
menu.menu
Open

menu: стилизация, сторисы, обёртки#34
khaliulin wants to merge 5 commits intofeature/styles-debugfrom
menu.menu

Conversation

@khaliulin
Copy link
Copy Markdown

No description provided.

imports: [Menu, PrimeTemplate],
template: `
<p-menu #menuRef [model]="model" [popup]="popup" [appendTo]="popup ? 'body' : null">
<ng-template pTemplate="item" let-item>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

опять же вопрос с кастомизациями. разработчикам не придется свои шаблоны передавать?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX добавлен itemTemplate для кастомизации элемента меню 7896268


@Component({
selector: 'menu',
host: { style: 'display: contents' },
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

для чего?

Copy link
Copy Markdown
Author

@khaliulin khaliulin Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX делает хост-элемент menu прозрачным для layout (flex/grid родителя его не видят). Без этого menu был бы блочным элементом, ломающим позиционирование.

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.

2 participants