Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remove unused action#1398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
levkk merged 1 commit intomasterfromlevkk-fix-search-option-action
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove unused action
  • Loading branch information
@levkk
levkk committedApr 8, 2024
commit84fae573ea02d4ff55b30377bf9b1b68ebc18234
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
use crate::components::stimulus::stimulus_action::{StimulusAction, StimulusEvents};
use pgml_components::{component, Component};
use sailfish::TemplateOnce;

#[derive(TemplateOnce, Default)]
#[template(path = "inputs/text/search/search_option/template.html")]
pub struct SearchOption {
value: Component,
action: StimulusAction,
}

impl SearchOption {
pub fn new(value: Component) -> SearchOption {
SearchOption {
value,
action: StimulusAction::new()
.controller("inputs-text-search-search")
.method("selectOption")
.action(StimulusEvents::FocusIn),
}
SearchOption { value }
}
}

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@

<li
class="menu-item d-flex align-items-center justify-content-start"
data-action="<%- action %>"
>
<%+ value %>
</li>

[8]ページ先頭

©2009-2025 Movatter.jp