ВМ
Size: a a a
ВМ
ВМ
$my_menu $mol_book
pages <= my_pages /
ВМ
my_pages
при переключении пунктов меню?ДК
#order
#order=12
#order=12/product
#order=12/product=core_i7
#discount
<= Order_link!id $mol_link arg * order <= order_id!id \
<= Product_link!id $mol_link arg * product <= product_id!id \
<= Orders_item $mol_link uri \#order
<= Discount_item $mol_link uri \#discount
ВМ
ДК
#section=orders
#section=orders/order=12
#section=orders/order=12/product
#section=orders/order=12/product=core_i7
#section=discounts/order=12/product=core_i7
ВМ
ВМ
#section=orders
#section=orders/order=12
#section=orders/order=12/product
#section=orders/order=12/product=core_i7
#section=discounts/order=12/product=core_i7
ВМ
$mol_state_session
?RM
ВМ
RM
ВМ
ВМ
section_page.view.tree
:$my_section_page $mol_page
minimal_width 400
title \
section_arg_key \default
closed_section_arg_value null
tools /
<= Close $mol_link
arg <= close_arg *
sub /
<= Close_icon $mol_icon_cross
body /
ВМ
close_arg
в section_page.view.ts
:namespace $.mol {
export class $my_section_page extends $.$my_section_page {
close_arg () {
return {
[this.section_arg_key()]: this.closed_section_arg_value()
} as { [x: string]: any }
}
}
}
ВМ
Text_section $my_section_page
minimal_width 400
title \Скидки
section_arg_key \discount
body /
<= Text_section_body $mol_text
text \Информация
ВМ
close_arg
не переопределяется и используется сгенерированная версия.$my_menu.Root(0).Text_section().close_arg
выводит содержимое исходной функции:function () {
return ({});
}