Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically append select_all: true to DOM-Method DSL #2

Open
marcoroth opened this issue Apr 21, 2021 · 0 comments
Open

Automatically append select_all: true to DOM-Method DSL #2

marcoroth opened this issue Apr 21, 2021 · 0 comments

Comments

@marcoroth
Copy link
Owner

The idea of the methods in the "DOM-Method" DSL is to potentially query multiple DOM nodes. With that it would make sense if dom, selector and css would automatically append the option select_all: true.

def dom(selector)
::CableReady::Dsl::SelectorString.new(selector)
end
def selector(selector)
dom(selector)
end
def css(selector)
dom(selector)
end

Maybe also a css_classes method would make sense. The select_all: true would also apply for that.

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

No branches or pull requests

1 participant