/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/cdk/menu/cdk-menu-context/cdk-menu-context-example.html
18 строк
1 KB
Kristiyan Kostadinov
feat(cdk/menu): move experimental CDK menu into stable (#24826)
23 апр 2022, 13:54
Не верифицирован
23 апр 2022, 13:54
653457e
Код
Авторство
О чём код?
<div [cdkContextMenuTriggerFor]="context_menu"> Did you ever hear the tragedy of Darth Plagueis The Wise? I thought not. It's not a story the Jedi would tell you. It's a Sith legend. Darth Plagueis was a Dark Lord of the Sith, so powerful and so wise he could use the Force to influence the midichlorians to create life… He had such a knowledge of the dark side that he could even keep the ones he cared about from dying. The dark side of the Force is a pathway to many abilities some consider to be unnatural. He became so powerful… the only thing he was afraid of was losing his power, which eventually, of course, he did. Unfortunately, he taught his apprentice everything he knew, then his apprentice killed him in his sleep. Ironic. He could save others from death, but not himself. </div> <ng-template #context_menu> <div class="example-menu" cdkMenu> <button class="example-menu-item" cdkMenuItem>Cut</button> <button class="example-menu-item" cdkMenuItem>Copy</button> <button class="example-menu-item" cdkMenuItem>Link</button> </div> </ng-template>