Кнопка QueryTag #662
Closed
k-rustemuly
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
Я в самом MoonShine\Buttons\QueryTagButton.php ->when(
$tag->isActive(),
fn (ActionButton $btn): ActionButton => $btn
->primary()
->customAttributes([
'class' => 'active-query-tag',
'href' => to_page(page: IndexPage::class, resource: $resource),
])
) протестировал так, удобно |
Beta Was this translation helpful? Give feedback.
2 replies
-
Только есть default() и кнопка будет всегда активна |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Если QueryTag кнопка активна, то при повторном нажатии удалить параметры query-tag из href. Тогда повторная нажатия кнопки просто вернет все записи
Beta Was this translation helpful? Give feedback.
All reactions