Skip to content

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

Merged
AxyIX merged 10 commits into
feature/styles-debugfrom
menu.menu
May 22, 2026
Merged

menu: стилизация, сторисы, обёртки#34
AxyIX merged 10 commits into
feature/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 был бы блочным элементом, ломающим позиционирование.


const template = `
<div class="bg-surface-ground">
<p-button label="Действия с заказом" severity="contrast" (onClick)="toggle($event)"></p-button>
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 фикс 0f93319

Danil Khaliulin and others added 5 commits April 17, 2026 16:26
@AxyIX AxyIX merged commit c51fc8d into feature/styles-debug May 22, 2026
1 check passed
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